Skip to main content

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 tj.vantoll comment:1

owner: → deadsy
status: newpending

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.

Changed March 19, 2013 07:56AM UTC by deadsy comment:2

status: pendingnew

Changed March 20, 2013 01:35AM UTC by tj.vantoll comment:3

status: newopen
summary: Datepicker ignores "disabled" option in _attachments() for trigger buttonDatepicker: showOn button loses disabled state after setting an option

Changed April 03, 2014 05:01PM UTC by tj.vantoll comment:4

#9965 is a duplicate of this ticket.