Opened 10 years ago

Last modified 9 years ago

#9165 open bug

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)

Change History (4)

comment:1 Changed 10 years ago by tj.vantoll

Owner: set to 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.

comment:2 Changed 10 years ago by deadsy

Status: pendingnew

comment:3 Changed 10 years ago by tj.vantoll

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

comment:4 Changed 9 years ago by tj.vantoll

#9965 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.