Closed ocavue closed 1 year ago
When using IME and input something in a empty block with CSS position: relative rule, the block will be deleted after input.
position: relative
Steps to reproduce:
blockquote: { position: relative; }
Video demo:
https://user-images.githubusercontent.com/24715727/221364912-6cec0952-f9ba-4603-b94c-4a92e4c3090a.mp4
I guess this bug has something to do with the following Safari bug (dom.nodeName in this case is also "BR"), but I haven't find a workaround after some quick tries.
dom.nodeName
"BR"
https://github.com/prosemirror/prosemirror-view/blob/49903c758/src/domchange.ts#L62-L69
I found this issue is a duplication as https://github.com/ProseMirror/prosemirror/issues/934. I'm going to close it.
When using IME and input something in a empty block with CSS
position: relative
rule, the block will be deleted after input.Steps to reproduce:
blockquote: { position: relative; }
Video demo:
https://user-images.githubusercontent.com/24715727/221364912-6cec0952-f9ba-4603-b94c-4a92e4c3090a.mp4
I guess this bug has something to do with the following Safari bug (
dom.nodeName
in this case is also"BR"
), but I haven't find a workaround after some quick tries.https://github.com/prosemirror/prosemirror-view/blob/49903c758/src/domchange.ts#L62-L69