Can't seem to delete void nodes on android (minimal sandbox included) #4748
Unanswered
StormVanDerPol
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! First of all I wanna thank all amazing contributors that made this project happen over the years.
So I think I've run into a little edge case but before reporting it as an issue I wanted to maybe check if a more slate-js savvy developer can spot some error on my part, 'cause I have no idea.
so the issue at hand:
On android (12 using Gboard) using "backspace" doesn't delete inline void nodes.
I've noticed that as far as operations go, "set_selection" gets triggered twice, but no sign of "remove_node". And very inconsistently I see
editor.deleteBackwards
triggering. (But the inline void node in question does not seem to get removed)Here's the sandbox
If there's anything weird going on in this snippet please let me know! I've been trying to debug this for days and I can't seem to figure it out.
Thanks for your time!
edit:
trail and error led me to discover this behaviour occurs more often in elements with
display: inline-block
thandisplay: inline
:another sandbox here.
Sadly I haven't gotten it to work properly & consistently in my actual application
Beta Was this translation helpful? Give feedback.
All reactions