Opened 9 months ago

Last modified 9 months ago

#15276 new bug

Datepicker does not hide when show is cancelled on another field

Reported by: pmahony893 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by pmahony893)

Scenario:

Three form fields, of which the second and third have a datepicker attached.

The datepicker has a beforeShow function that returns false for the second datepicker, but an empty options object ({}) for the first.

When the user tabs quickly from the first field to the third, I expect the datepicker to not be visible. The actual result is that the datepicker is visible under the second field. This occurs because the beforeShow function for the third field is called while the show animation for the second is still in progress, and it calls stop on the datepicker container element.

Codepen: https://codepen.io/pmahony893/pen/GQawVO

Change History (1)

comment:1 Changed 9 months ago by pmahony893

Description: modified (diff)
Note: See TracTickets for help on using tickets.