Search and Top Navigation
#7671 closed bug (worksforme)
Opened August 26, 2011 11:10AM UTC
Closed August 30, 2011 11:57PM UTC
Last modified August 31, 2011 04:38PM UTC
datepicker doesn't update the text input correctly in Chrome
Reported by: | andychapman | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.datepicker | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have a datepicker on a text input field. It's fine in IE and Firefox but in Chrome the input control isn't updated when I select a date. It does update when I click on the input control again (i.e. datepicker reappears) and if I submit the form it is in the right value is submitted.
This is my startup javascript:
start = $(":input[id='start_date']");
date = start.val();
$("#start_date").datepicker({
dateFormat : 'dd M yy',
gotoCurrent : true
});
$("#start_date").datepicker("setDate", date);
I've tried jqueryUI 1.8.10 and 1.8.16 and got the same behaviour.
Attachments (0)
Change History (2)
Changed August 30, 2011 11:57PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
Changed August 31, 2011 04:38PM UTC by comment:2
I think this may have been an interaction between a placeholder jquery plugin and the datepicker. I suspect the placeholder plugin is replacing the date with the placeholder and then the datepicker (not surprisingly) fails to parse the string. God know why it only happens in Chrome though.
Works fine for me: http://jsbin.com/obojab/edit#javascript,html