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

IdsDropdown: input beforetriggerclicked event being fired multiple times

Open fabiojpoli opened this issue 7 months ago • 4 comments

Describe the bug IdsDropdown input beforetriggerclicked event being fired multiple times when client on the input.

To Reproduce

  1. Go to https://main.wc.design.infor.com/ids-dropdown/example.html
  2. Register the event for the first combo on console:
document.getElementById('dropdown-1').input.addEventListener('beforetriggerclicked', function() {
    console.log('before trigger click')
});
  1. Click on the trigger (arrow down button), the event happens once (GOOD)
  2. Click on the input, the event happens AND twice (BUG)

Expected behavior The event happen only once and only when clicking on the trigger (to expand down the list to show the combo data). Do not fire the event on any other click of input of anywhere else.

Version Latest

Screenshots Screen Shot 2024-07-10 at 6 03 33 PM

fabiojpoli avatar Jul 10 '24 23:07 fabiojpoli