lime-elements
lime-elements copied to clipboard
Trigger button not clickable after opening menu with enter
Current behavior
When using limel-button or limel-icon-button in the trigger slot for limel-menu trying to reopen the menu no longer works after it was opened using enter.
This is not a problem if a native button is used instead. It is somehow caused by makeEnterClickable (the trigger works as expected when makeEnterClickable isn't used).
https://github.com/Lundalogik/lime-elements/assets/5563232/44c9bd2d-f46b-4ef5-8617-a2a5da08cc23
Steps to reproduce the behavior:
- Tab to focus the trigger button
- Press enter to open the menu
- Close the menu
- Try to open the menu again
Expected behavior
The menu should open again when clicking the trigger button
it looks like duplicate of this one https://github.com/Lundalogik/lime-elements/issues/2579
Closing this as duplicate