Ticket #7122 (closed bug: notabug)

Opened 2 years ago

Last modified 2 years ago

datepicker repl. input's value using altField

Reported by: wende60 Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.10
Keywords: Cc:
Blocking: Blocked by:

Description

jquery 1.5.1 ui.core/datepicker 1.8.10

Using the altField parameter datepicker replaces the input's value with the current date instead of displaying the input's date. Same behaviour i found in datepicker 1.7, but setting the altField option _after_ initializing (input's value was not modified then) and using setDate did help.

Here you can find an example:

 http://www.wendenburg.de/test/datepicker/

regards, joachim

Change History

comment:1 Changed 2 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to invalid

This doesn't seem like a valid use case. The alt field isn't the master; the datepicker is. In your example, you're not actually telling the datepicker what date is selected so it's selecting the first valid date.

Note: See TracTickets for help on using tickets.