Changeset 56591
- Timestamp:
- 09/14/2023 10:33:50 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/image-edit.js
r55935 r56591 237 237 $target 238 238 .toggleClass( 'imgedit-popup-menu-open' ).slideToggle( 'fast' ).css( { 'z-index' : 200000 } ); 239 // Move focus to first item in menu. 240 $target.find( 'button' ).first().trigger( 'focus' ); 239 // Move focus to first item in menu when opening menu. 240 if ( 'true' === $el.attr( 'aria-expanded' ) ) { 241 $target.find( 'button' ).first().trigger( 'focus' ); 242 } 241 243 242 244 return false;
Note: See TracChangeset
for help on using the changeset viewer.