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
The reason:
We are using Editor inside nodes within some canvas and have the feature of auto focusing Editor within newly added node.
As by default preventScroll is false this causes unintentional browser scrolling the document to bring the newly-focused element into view and this is the reason for some UI issues. If Editor.focus supports preventScroll parameter we can easily control browser behavior on focus
The text was updated successfully, but these errors were encountered:
It would be great if
Editor.focus
method supported optional params (preventScroll, focusVisible
- https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#parameters) and used these params when focusing in editor textareaThe reason:
We are using
Editor
inside nodes within some canvas and have the feature of auto focusing Editor within newly added node.As by default
preventScroll
is false this causes unintentional browser scrolling the document to bring the newly-focused element into view and this is the reason for some UI issues. IfEditor.focus
supports preventScroll parameter we can easily control browser behavior on focusThe text was updated successfully, but these errors were encountered: