Mouse-Selection unexpected behaviour

Mouse selection cannot selected contenteditable=false element in Chromium when i setup the decoration with zero-width-space around the it. I’m trying to mouse selection from right to left, but the caret will skimming the item.

some similar problem from another post Prosemirror-virtual-cursor still looking forward to a solution without fake cursor

I can reproduce this weird caret behavior at lint example in Chrome

screen-record

if the caret locate at the widget decoration position (for example before the Too-minor header), then we can’t drag the mouse to select the text,

This issue might be specific to Chrome (test on version 131.0.6778.205), because Firefox (test on version 133.0.3) can do it right

Maybe Chrome can’t deal with the contenteditable="false" element inside the contenteditable element

1 Like