Opened 10 years ago

Last modified 7 years ago

#8907 open bug

Datepicker: Calling a method on a datepicker while another datepicker is open causes issues

Reported by: [email protected] Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Scott González)

When the user double-clicks to select a date from the DatePicker tool on #datepicker1, the "defaultDate" setting on #datepicker2 is causing the actual field value to be set to the current date. When I step through the code, this does not happen. It only happens when not in debug mode.

Change History (10)

comment:1 Changed 10 years ago by [email protected]

Sorry, first time user. Here's the code on jsFiddle: http://jsfiddle.net/nwpq7/3/

comment:2 Changed 10 years ago by Scott González

Description: modified (diff)
Status: newopen

comment:3 Changed 10 years ago by tj.vantoll

Milestone: 1.10.0none

comment:4 Changed 8 years ago by Scott González

Summary: DatePicker Double-Click Issue with setting defaultDate on Another DatePickerDatepicker: Calling a method on a datepicker while another datepicker is open causes issues

What happens is that calling a method on datepicker 2 while datepicker 1 is open causes datepicker 2 to be rendered in place of datepicker 1. You can see this happening by selecting a date in a different month for datepicker 2, then selecting a date in datepicker 1; you'll see the month switch as the datepicker is closing.

comment:5 Changed 8 years ago by Scott González

#14450 is a duplicate of this ticket.

comment:6 Changed 8 years ago by Scott González

#14738 is a duplicate of this ticket.

comment:7 Changed 7 years ago by Scott González

#14949 is a duplicate of this ticket.

comment:8 Changed 7 years ago by jasonkw9

Is this bug fixed?

comment:9 Changed 7 years ago by Scott González

No, if it were, the ticket would be closed.

comment:10 in reply to:  9 Changed 7 years ago by jasonkw9

Replying to scottgonzalez:

So is there any ways to prevent it from happening?

Last edited 7 years ago by Ryan J Ollos (previous) (diff)
Note: See TracTickets for help on using tickets.