[wp-trac] [WordPress Trac] #30964: Color picker doesn't handles empty values from javascript correctly

WordPress Trac noreply at wordpress.org
Fri Jan 9 10:25:42 UTC 2015


#30964: Color picker doesn't handles empty values from javascript correctly
--------------------------+-----------------------------
 Reporter:  katazina      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 I have one template which is highly customizable and I created
 "subtemplates" from that by javascript using the wp.customize api. (more
 detail: #30951)

 If I set empty for color in one subtemplate and I changed from a
 subtemplate which had this color set, then the color value is empty, but
 the color box, beside the input is colored.
 `api.instance('background_color').set('');` <- I mean that for empty

 I attached an image about this.
 1. Left to the "Current Color" text, the box is colored, (//not correct
 behaviour)
 2. but no hexa value is added. (//correct behaviour)

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


More information about the wp-trac mailing list