You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion link modal should be closed after editor looses focus or after changing selection on editor.
To reproduce: just select some text, click "link" then just select another part of text or click outside of editor and back. Every time u open toolbar there would be link modal.
Could be fixed by subscribing on "onEditorChange" and close modal window each time editor changed. This event would be raised by any kind of selection, focus loosing or editing.
P.S. same behaviour comes with any other pickers and kinda frustrating based on UX.
The text was updated successfully, but these errors were encountered:
PR
This version didn`t work for now, event not rising. After fixing this one it would work for any focus/editing draftjs editor and close link modal window.
In my opinion link modal should be closed after editor looses focus or after changing selection on editor.
To reproduce: just select some text, click "link" then just select another part of text or click outside of editor and back. Every time u open toolbar there would be link modal.
Could be fixed by subscribing on "onEditorChange" and close modal window each time editor changed. This event would be raised by any kind of selection, focus loosing or editing.
P.S. same behaviour comes with any other pickers and kinda frustrating based on UX.
The text was updated successfully, but these errors were encountered: