enterprise-wc
enterprise-wc copied to clipboard
IdsDropdown: input beforetriggerclicked event being fired multiple times
Describe the bug IdsDropdown input beforetriggerclicked event being fired multiple times when client on the input.
To Reproduce
- Go to https://main.wc.design.infor.com/ids-dropdown/example.html
- Register the event for the first combo on console:
document.getElementById('dropdown-1').input.addEventListener('beforetriggerclicked', function() {
console.log('before trigger click')
});
- Click on the trigger (arrow down button), the event happens once (GOOD)
- 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