[wp-trac] [WordPress Trac] #48896: When enqueued wp-color-picker, toggle response of each widget panel is unresponsive on customizer.

WordPress Trac noreply at wordpress.org
Fri Dec 6 07:10:26 UTC 2019


#48896: When enqueued wp-color-picker, toggle response of each widget panel is
unresponsive on customizer.
--------------------------+-----------------------------
 Reporter:  inc2734       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Confirmed to occur on Android Chrome.
 It was not reproduced on iOS Safari, Mac Chrome / Safari.
 Perhaps opening and closing will ignite at the same time.

 == Reproduction code
 /themes/widget-test
 ├ style.css
 ├ functions.php
 └ index.php

 === style.css
 {{{
 /**
  * Theme name: widget test
  */
 }}}

 === functions.php
 {{{
 <?php
 add_action(
         'widgets_init',
         function() {
                 register_sidebar(
                         [
                                 'name'          => __( 'sidebar', 'widget-
 test' ),
                                 'id'            => 'widget-test-sidebar',
                                 'before_widget' => '<div id="%1$s"
 class="c-widget %2$s">',
                                 'after_widget'  => '</div>',
                                 'before_title'  => '<h2
 class="c-widget__title">',
                                 'after_title'   => '</h2>',
                         ]
                 );
         }
 );

 add_action(
         'admin_enqueue_scripts',
         function() {
                 wp_enqueue_script( 'wp-color-picker' );
         }
 );
 }}}

 === index.php
 {{{
 <head>
         <?php wp_head(); ?>
 </head>
 <body>
         <?php dynamic_sidebar( 'widget-test-sidebar' ); ?>
         <?php wp_footer(); ?>
 </body>
 }}}

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


More information about the wp-trac mailing list