rd-dev-ukraine / angular-io-datepicker

MIT License
21 stars 18 forks source link

In the latest version of Firefox , the `document` click event is triggering when a `mousedown` event occurs on a `select` element while using Select2. This behavior is different from other browsers. #51

Closed keerthivasan12 closed 1 year ago

keerthivasan12 commented 1 year ago

Description:

In the latest version of Firefox, I'm encountering an unexpected behavior related to mousedown and click events when interacting with a select element within the Select2 library. The issue is not present in other web browsers.

Details:

Expected Behavior: Click events should not propagate to the document when interacting with a select element. Observed Behavior in Firefox: Click events on the select element trigger the document click event.

Steps to Reproduce:

Use the provided HTML and JavaScript code. Open the webpage in Firefox (Latest version). Interact with the select element within the Select2 dropdown.

`

`