Opened 10 years ago

Closed 10 years ago

#4923 closed bug (worksforme)

Pressing Return (keyCode 13) overwrites manually inserted input in DatePicker

Reported by: tobias Owned by:
Priority: major Milestone: 1.8
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

This issue was apparently logged and fixed in 1.5.3 (see ticket #4474), so I'm opening a new case for 1.7.2. Several people have confirmed this bug exists in the 1.7 series.

  • click in input field -> DatePicker? shows up
  • enter a date manually with the keyboard; for example: 26/04/1988
  • Hit Return (keyCode 13)

=> Result: my input is overwritten with today's date.

Change History (2)

comment:1 Changed 10 years ago by Jörn Zaefferer

Milestone: TBD1.8

Keyhandling must consider the difference between actually selecting a date from the datepicker and just entering a date.

comment:2 Changed 10 years ago by kbwood

Resolution: worksforme
Status: newclosed

Unable to duplicate the problem. I note that the date given is not in the default format (mm/dd/yyyy). If the date shown is entered against the default format then it is not recognised as a valid date and so the currently showing date is selected on ENTER. If the date format is changed appropriately ('dd/mm/yy') then the date entered is parsed immediately and is reflected in the datepicker so that it becomes the current date when ENTER is pressed.

Note: See TracTickets for help on using tickets.