WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 8 weeks ago

Last modified 8 weeks ago

#37069 closed defect (bug) (wontfix)

WP Color Picker has no appropriate disable / destroy method.

Reported by: Aniruddh Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.2
Component: General Keywords:
Focuses: javascript, administration Cc:

Description

It seems WP Color Picker has no appropriate disable or destroy method.

You can do

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

colorPicker.wpColorPicker('destroy');

And nothing happens here, too.

Change History (3)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


8 weeks ago

#2 @isabel_brison
8 weeks ago

  • Resolution set to wontfix
  • Status changed from new to closed

Thanks for the suggestion @Aniruddh !

wpColorPicker is currently in maintenance mode so we're not adding enhancements/new features to it. Instead, we encourage you to try out our new color picker component over in the Gutenberg repo: https://github.com/WordPress/gutenberg/tree/master/packages/components/src/color-picker

#3 @joyously
8 weeks ago

How does that affect all the themes that use it currently?

Note: See TracTickets for help on using tickets.