mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

bug: entering right round bracket before left causes caret to jump to start

Open orelbn opened this issue 1 year ago • 0 comments

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).

  1. First, go to the editor: https://cortexjs.io/mathlive/editor/
  2. Enter an equation such as 1+2*3+4
  3. Add right-round bracket ).
  4. Add a left-round bracket (, somewhere before the right-round bracket.

Example input: 1+2*(3+4)

  1. 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

orelbn avatar Dec 03 '24 03:12 orelbn