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
The selectedIndex in the TypeaheadMenuPlugin unexpectedly jumps to the list item that the mouse cursor is currently on when scrolling down the menu using the keydown/keyup navigation. This behavior occurs because the list items are listening for the onMouseEnter event, which updates the selectedIndex.
In the TypeaheadMenuPlugin, while navigating the menu using the up and down arrow keys, the selectedIndex unexpectedly moves to the list item where the cursor is currently located.
The expected behavior
When using the up and down arrow keys to navigate the menu, the selectedIndex should not unexpectedly move to the list item where the cursor is located. Instead, it should progress sequentially through the list items as intended.
The text was updated successfully, but these errors were encountered:
The selectedIndex in the TypeaheadMenuPlugin unexpectedly jumps to the list item that the mouse cursor is currently on when scrolling down the menu using the keydown/keyup navigation. This behavior occurs because the list items are listening for the onMouseEnter event, which updates the selectedIndex.
lexical/packages/lexical-playground/src/plugins/ComponentPickerPlugin/index.tsx
Line 393 in 933ec6a
I am wondering if the onMouseEnter event is necessary. If it is not required, we could consider removing it to resolve this issue.
Lexical version: v0.9.1
Steps To Reproduce
/
. (This will open the Typeahead Menu.)Lexical.Playground.-.Google.Chrome.2023-04-10.16-53-28.mp4
The current behavior
In the TypeaheadMenuPlugin, while navigating the menu using the up and down arrow keys, the selectedIndex unexpectedly moves to the list item where the cursor is currently located.
The expected behavior
When using the up and down arrow keys to navigate the menu, the selectedIndex should not unexpectedly move to the list item where the cursor is located. Instead, it should progress sequentially through the list items as intended.
The text was updated successfully, but these errors were encountered: