Opened 7 years ago

Closed 7 years ago

#9554 closed bug (wontfix)

Cloned button will not disable

Reported by: zulisse Owned by:
Priority: minor Milestone: none
Component: ui.button Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

A button created with clone() from another element will not be disabled by .button('disable').

.button('disable') works perfectly on arrays of buttons, but if a button was cloned before, it will not take the disabled method.

this happens even if you trigger the disable with a mouse click on another button (async false).

try it on a small sample here:

http://jsfiddle.net/eRLka/

I tryed on chrome and firefox.

buttons will output this in console:

0: button.cancel_all ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-button-disabled ui-state-disabled 1: button.cancel_all ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary

Change History (1)

comment:1 Changed 7 years ago by tj.vantoll

Resolution: wontfix
Status: newclosed

Hi zulisee,

Thanks for taking the time to contribute to the jQuery UI project. Unfortunately cloning widgets is not supported - see http://contribute.jquery.org/wont-fix/ and #3803.

Note: See TracTickets for help on using tickets.