WhatSock / apex

Apex 4X: The Comprehensive ARIA Development Suite
MIT License
29 stars 9 forks source link

Datepicker double open #41

Closed impetoyt closed 1 year ago

impetoyt commented 1 year ago

inside an html page you just build two different input with two different button which will render two different picker.

the default behaviour is: 1) click on the first button, the picker it will open. Just wait that the animation is completed. 2) click on the second button, the first picker will automatically close and the second picker will open.

here the issue (250ms animation using Velocity it is sufficient): 1) click on the first button, the picker it will open. Don't wait to complete the animation and click on the second button. 2) the first picker will not automatically close and the second picker will open together with the first one.

Using 0ms animation avoid the problem but it's not a good solution.

image

accdc commented 1 year ago

Hi, can you please retest to see if the recent commit fixes this issue? https://github.com/WhatSock/apex/commit/83bdbfd072c00eaefafbcc844977f7efaf862e35

accdc commented 1 year ago

Hi, I just tested this on my end and the fix does appear to solve the double rendering. Please reopen this if you notice the same behavior after updating your code to use the core Blade Runner 4X.js version plus the updated Datepicker.js module code.