Lundalogik / lime-elements

Provides reusable web components for Lime CRM
https://lundalogik.github.io/lime-elements/versions/latest
Other
38 stars 12 forks source link

fix(date-picker): avoid closing before input click #3045

Closed vicgeralds closed 1 week ago

vicgeralds commented 2 weeks ago

When the date picker is already open, clicking the input field (or tabbing to focus the clear button) would first hide the date picker on mouse down and then show it again on mouse up.

This is fixed by ignoring mousedown events from the input field. We also don't need to listen to keydown events, since we're already hiding the date picker on blur.

Review:

Browsers tested:

(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)

Windows:

Linux:

macOS:

Mobile:

github-actions[bot] commented 2 weeks ago

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-3045/

lime-opensource commented 1 week ago

:tada: This PR is included in version 37.52.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: