[wp-trac] [WordPress Trac] #37069: WP Color Picker has no appropriate disable / destroy method.

WordPress Trac noreply at wordpress.org
Fri Jun 10 04:25:08 UTC 2016


#37069: WP Color Picker has no appropriate disable / destroy method.
----------------------------------------+-----------------------------
 Reporter:  Aniruddh                    |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  General                     |    Version:  4.5.2
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 It seems WP Color Picker has no appropriate disable or destroy method.

 You can do

 {{{#!js
 colorPicker.wpColorPicker('option','disabled', true);
 }}}

 Nothing happens except it adds `wp-wpColorPicker-disabled` class. The
 color picker works like it is in normal state.

 The same thing happens with destroy method, you can do
 {{{#!js
 colorPicker.wpColorPicker('destroy');
 }}}

 And nothing happens here, too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list