Lundalogik / lime-elements

Provides reusable web components for Lime CRM
https://lundalogik.github.io/lime-elements/versions/latest
Other
38 stars 12 forks source link

Trigger button not clickable after opening menu with enter #3052

Open vicgeralds opened 1 week ago

vicgeralds commented 1 week ago

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:

  1. Tab to focus the trigger button
  2. Press enter to open the menu
  3. Close the menu
  4. Try to open the menu again

Expected behavior

The menu should open again when clicking the trigger button