Replies: 3 comments 1 reply
-
Friendly nudge. Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
Hmh this is a bit of a hack, so probably don't use it;)
then in the update that "steals" the focus you can do:
and then in an effect, change back the current focus when the editor changes ( you could also use a node transform).
However, I think the focus is being changed due to a KEY_ENTER_COMMAND, so you could also register a new command that changes the focus back instead of using an updateListener. |
Beta Was this translation helpful? Give feedback.
-
Try setting the editor non-editable before the setStyle, then making it editable again in a discrete update or in an update listener. |
Beta Was this translation helpful? Give feedback.
-
I have an input that I'm typing into to highlight words within the editor. Every time I use
node.setStyle(...)
the editor steals the focus from the input. How do I prevent this, or is there a better way to achieve this?https://codesandbox.io/s/wonderful-sunset-r6zkh4?file=/src/Editor.js
Beta Was this translation helpful? Give feedback.
All reactions