drawSelection incorrect selection area when using widget

I’m using the latest 6.12.0 version of @codemirror/view. I see that the changlog has fixed the problem of the selection area of the block widget。

When I set the widget, there is a problem with the selected area if the current row has nothing。There are spaces or characters displayed normally。6.11.3 fixes the same problem as described. It’s just that I didn’t use the block widget.

321

image

The complete implementation of placeholder, but it cannot be reproduced in codesanbox

I’d say the first question then would be why not. If I don’t have a way to reproduce this, I cannot debug it.

Sorry, Makin. I set the following styles for effect.

.cm-line img[aria-hidden="true"] {
   display: none;
}