#7671 closed bug (worksforme)
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.
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
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