enterprise-wc icon indicating copy to clipboard operation
enterprise-wc copied to clipboard

IdsDropdown: selected event not fired when selecting by pressing ENTER

Open fabiojpoli opened this issue 5 months ago • 0 comments

Describe the bug selected event happens only when selecting with click but not with keyboard

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://main.wc.design.infor.com/ids-dropdown/example.html
  2. On console run this code:
document.getElementById('dropdown-1').addEventListener('selected', function() {
    console.log('selected');
});
  1. On the first dropdown, select a different option by clicking, works fine and shows selected on console
  2. On the same dropdown, open the dropdown and navigate with keyboard to a different option then press ENTER to select: the selected word doesn't show because event was not fired.

Version latest

Screenshots Screenshot 2024-09-06 at 10 36 39 AM

fabiojpoli avatar Sep 06 '24 15:09 fabiojpoli