You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Entering something in Latex mode, then clicking somewhere else the Mathfield (outside the Latex formula you're writing), exits Latex mode and inserts the Latex as math, just like when pressing "Enter" or "Esc". However, using the mouse doesn't fire the onInput event.
Steps to Reproduce
(Required) Provide steps that are specific and repeatable
Enter something in math mode (e.g. 123)
Type \ then a Latex command, e.g. \cdot
Instead of "Enter"/"Esc" to exit latex mode, use the mouse to click somewhere else in the text field (e.g. on the 123)
Actual Behavior
Using the mouse to exit Latex mode in step 3 doesn't cause an onInput event to fire, so there's no way to know that the content of the Mathfield has changed.
In the following recording, the first ⋈ is inserted by clicking with the mouse, the second is inserted by pressing Enter.
Screen.Recording.2024-06-26.at.10.14.24.mov
Expected Behavior
onInput should fire when exiting Latex mode with a mouseclick (similarly to pressing "Enter"/"Esc" to exit Latex mode).
Environment
MathLive 0.100.0 on Chrome, macOS.
The text was updated successfully, but these errors were encountered:
Mathias-S
changed the title
[Bug] Switching from Latex mode to Math mode using the mouse does not trigger onChange
[Bug] Switching from Latex mode to Math mode using the mouse does not trigger onInput
Jun 26, 2024
Description
Entering something in Latex mode, then clicking somewhere else the Mathfield (outside the Latex formula you're writing), exits Latex mode and inserts the Latex as math, just like when pressing "Enter" or "Esc". However, using the mouse doesn't fire the
onInput
event.Steps to Reproduce
123
)\
then a Latex command, e.g.\cdot
123
)Actual Behavior
Using the mouse to exit Latex mode in step 3 doesn't cause an onInput event to fire, so there's no way to know that the content of the Mathfield has changed.
In the following recording, the first
⋈
is inserted by clicking with the mouse, the second is inserted by pressing Enter.Screen.Recording.2024-06-26.at.10.14.24.mov
Expected Behavior
onInput
should fire when exiting Latex mode with a mouseclick (similarly to pressing "Enter"/"Esc" to exit Latex mode).Environment
MathLive 0.100.0 on Chrome, macOS.
The text was updated successfully, but these errors were encountered: