react-mathlive icon indicating copy to clipboard operation
react-mathlive copied to clipboard

Caret trapping

Open WildYellowfin opened this issue 3 years ago • 0 comments

First noticed this with math-fields inline within a rich text editor. More pronounced when a min-width or padding is set to the MathView component, probably because the surface area for the bug is larger.

On the example page, deleting the content of a controlled math-field and clicking slightly above the line height will cause the caret to "stick" even after focus is lost. The ring disappears, but the keyboard remains. See attached screen recording.

https://user-images.githubusercontent.com/104928632/209454050-90530291-3ee0-4001-8532-5a3c0df6f1b3.mov

WildYellowfin avatar Dec 25 '22 00:12 WildYellowfin