Skip to main content

Search and Top Navigation

#9554 closed bug (wontfix)

Opened September 13, 2013 03:31PM UTC

Closed September 13, 2013 03:56PM UTC

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

Attachments (0)
Change History (1)

Changed September 13, 2013 03:56PM UTC by tj.vantoll comment:1

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.