Make WordPress Core

Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#37069 closed defect (bug) (wontfix)

WP Color Picker has no appropriate disable / destroy method.

Reported by: aniruddh's profile 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.


4 years ago

#2 @isabel_brison
4 years 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
4 years ago

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

Note: See TracTickets for help on using tickets.