For the case where no item is selected. Because in this case $parentMenu is still something else than $menu.
Fixes left arrow key in dropdown search input
Can you explain what might trigger this issue?
@Sanjo Delaying this without a specific test case
This fix just adds the condition:
which is necessary because isSubMenuItem has the value true even when no item is selected, which interprets the left arrow key press wrongly as menu navigation action, instead of the default cursor position change action.
Woah that is bad.. thanks for the catch
Thanks for spotting this, this is a pretty heinous bug.
I've manually added the fix instead of merging due to conflicts when merging into the next branch. (See readme for details, but generally all PR should be merged into next branch)
Fixes issue with left keyboard arrow shortcut in dropdown #3596