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
Hi, I am using codeBlockComponent in an editor that handles focusout events. When a language is picked from the language list, the component loses focus and a focusout event is fired with relatedTarget set to null. My focusout listener therefore thinks the editor has lost focus, which is not what is happening. I think the focus is set to an element that is destroyed after a language is picked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am using
codeBlockComponent
in an editor that handlesfocusout
events. When a language is picked from the language list, the component loses focus and afocusout
event is fired withrelatedTarget
set to null. Myfocusout
listener therefore thinks the editor has lost focus, which is not what is happening. I think the focus is set to an element that is destroyed after a language is picked.How can I avoid this? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions