lime-elements icon indicating copy to clipboard operation
lime-elements copied to clipboard

Trigger button not clickable after opening menu with enter

Open vicgeralds opened this issue 1 year ago • 1 comments

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

vicgeralds avatar Jun 26 '24 20:06 vicgeralds

it looks like duplicate of this one https://github.com/Lundalogik/lime-elements/issues/2579

LucyChyzhova avatar Jul 18 '24 08:07 LucyChyzhova

Closing this as duplicate

FredrikWallstrom avatar Jul 16 '25 11:07 FredrikWallstrom