Search and Top Navigation
#9165 open bug ()
Opened March 18, 2013 02:22PM UTC
Last modified April 03, 2014 05:01PM UTC
Datepicker: showOn button loses disabled state after setting an option
Reported by: | deadsy | Owned by: | deadsy |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
After setting an option, Datepicker ignores "disabled" option for trigger button in _attachments() method. Button remains active.
Solution:
var disabled = this._get(inst, "disabled"); $("<button type='button'></button>").prop("disabled", disabled)
Attachments (0)
Change History (4)
Changed March 18, 2013 10:45PM UTC by comment:1
owner: | → deadsy |
---|---|
status: | new → pending |
Changed March 19, 2013 07:56AM UTC by comment:2
status: | pending → new |
---|
Example: http://jsfiddle.net/LJzW3/1/
Changed March 20, 2013 01:35AM UTC by comment:3
status: | new → open |
---|---|
summary: | Datepicker ignores "disabled" option in _attachments() for trigger button → Datepicker: showOn button loses disabled state after setting an option |
Hi deadsy,
Thanks for taking the time to contribute to the jQuery UI project. I'm not seeing the issue you're describing: http://jsfiddle.net/tj_vantoll/LJzW3/. Can you please alter my test case to show the issue you're experiencing?
Thanks.