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
When both onInput and onKeyDown is used, onKeyDown should always fire before onInput, but with mathlive with React (not 100% sure if its caused by React), the order is switched with Backspace, Delete, and maybe others that I haven't tested. With Enter, the onKeyDown handler is not fired at all.
Edit: This is reproducible without react as well, see this codepen.
Description
onInput
andonKeyDown
is used,onKeyDown
should always fire beforeonInput
, but with mathlive with React (not 100% sure if its caused by React), the order is switched withBackspace
,Delete
, and maybe others that I haven't tested. WithEnter
, theonKeyDown
handler is not fired at all.Steps to Reproduce
Visit this codepen: https://codepen.io/weikequ/pen/bGyGyEy?editors=1111
or
Actual Behavior
The order of the event handlers would be messed up or not fire at all (with
Enter
).Expected Behavior
The order of the event handlers should always read onKeyDown first.
Environment
Latest version through unpkg.com
Operating System macOS 14.2.1
Browser Tested with Safari, Chromium (Electron), Firefox
The text was updated successfully, but these errors were encountered: