Changeset 56988 for branches/6.4/src/wp-includes/blocks/navigation.php
- Timestamp:
- 10/23/2023 06:44:06 PM (14 months ago)
- Location:
- branches/6.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-includes/blocks/navigation.php
r56816 r56988 91 91 $w->set_attribute( 'data-wp-on--focusout', 'actions.core.navigation.handleMenuFocusout' ); 92 92 $w->set_attribute( 'data-wp-on--keydown', 'actions.core.navigation.handleMenuKeydown' ); 93 94 // This is a fix for Safari. Without it, Safari doesn't change the active 95 // element when the user clicks on a button. It can be removed once we add 96 // an overlay to capture the clicks, instead of relying on the focusout 97 // event. 98 $w->set_attribute( 'tabindex', '-1' ); 99 93 100 if ( ! isset( $block_attributes['openSubmenusOnClick'] ) || false === $block_attributes['openSubmenusOnClick'] ) { 94 101 $w->set_attribute( 'data-wp-on--mouseenter', 'actions.core.navigation.openMenuOnHover' );
Note: See TracChangeset
for help on using the changeset viewer.