Search and Top Navigation
#5631 closed bug (duplicate)
Opened May 18, 2010 05:01PM UTC
Closed October 16, 2012 08:58PM UTC
Datepicker: Allows disabled input to trigger datepicker
Reported by: | laurenty | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.11.0 |
Component: | ui.datepicker | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The Datepicker constructor should check the "disabled" property of its target input control and set its own disabled state accordingly.
When a webpage is rendered with the following markup:
<input type="text" name="date" id="mydate" disabled="disabled">
The Datepicker should also be rendered disabled when running the following code.
$("#mydate").datepicker({ showOn: 'button', buttonImage: 'images/calendar.gif', buttonImageOnly: true });
This is a "feature":
http://bugs.jqueryui.com/ticket/4079
It allows users to be forced to use the datepicker, against usability principles.
I believe allowing the editing of disabled inputs using the datepicker should be an option, defaulting to false.