[wp-trac] [WordPress Trac] #30964: Color picker doesn't handles empty values from javascript correctly
WordPress Trac
noreply at wordpress.org
Sun Jan 22 04:52:04 UTC 2017
#30964: Color picker doesn't handles empty values from javascript correctly
-----------------------------------------+-----------------------------
Reporter: katazina | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: reporter-feedback has-patch | Focuses: javascript
-----------------------------------------+-----------------------------
Changes (by dlh):
* keywords: reporter-feedback => reporter-feedback has-patch
Comment:
`wpColorPicker` contains some logic that could handle this situation. One
of them is to trigger a `change` event on the colorpicker's `element`,
which is the approach in [attachment:30964.diff].
Alternatively, the background color could be set manually, or a separate
function could be added to `ColorPicker` for clearing the color and firing
callbacks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30964#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list