arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.56k stars 277 forks source link

Cannot select the last placeholder on dfx function #2398

Closed kingfisherphuoc closed 3 months ago

kingfisherphuoc commented 3 months ago

Description

Cannot select the last placeholder on dfx: \int

Steps to Reproduce

(Required) Provide steps that are specific and repeatable

  1. insert dfx into mathfield: \int_{\placeholder{}}^{\placeholder{}}{\placeholder{}}
  2. Move the selection with arrow key
  3. The last placeholder is not selectable.

Actual Behavior

The last placeholder was not selectable, even though the previous ones could be selected by navigating using arrow keys.

Expected Behavior

The last placeholder should be selected as other placeholders.

Environment

MathLive version: 0.98.6

Operating System _macOS

Browser Chrome

The last placeholder should be selectable as the previous one.

Screenshot 2024-06-13 at 10 20 01
arnog commented 3 months ago

Note: the error is happening because of an extra pair of braces. The following expression works: \int_{\placeholder{}}^{\placeholder{}}\placeholder{}