[wp-trac] [WordPress Trac] #34142: Links with preventDefault() don't have action prevented in Customizer

WordPress Trac noreply at wordpress.org
Sun Oct 4 10:08:43 UTC 2015


#34142: Links with preventDefault() don't have action prevented in Customizer
--------------------------+-----------------------------
 Reporter:  Looimaster    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.3.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I have "menu" and "cart" icons in the menu (created via custom CSS classes
 in Appearance > Menus) which are empty links `<a href="#" class="cart-
 icon">Cart</a>` with default action prevented and replaced with custom
 JavaScript action (opening sidebar menu or showing cart overlay).

 When these links are clicked in the Customizer then the page is reloaded.
 So, it's never possible to open the menu or cart by clicking on these
 icons.

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


More information about the wp-trac mailing list