mathlive
mathlive copied to clipboard
bug: entering right round bracket before left causes caret to jump to start
Description
Entering the right bracket in the math-field and then going back to enter the left causes the caret to jump towards the beginning.
https://github.com/user-attachments/assets/5af2031a-68f1-4a08-a97f-b77874e64930
Steps to Reproduce
I encountered this in my application, but it's reproducible on the website's editor (I used Chrome).
- First, go to the editor: https://cortexjs.io/mathlive/editor/
- Enter an equation such as
1+2*3+4 - Add right-round bracket
). - Add a left-round bracket
(, somewhere before the right-round bracket.
Example input: 1+2*(3+4)
- Then, the caret jumps towards the beginning.
Actual Behavior
The caret jumps toward the beginning if following the steps above.
Expected Behavior
The caret should appear following the ( character