Changeset 10634
- Timestamp:
- 01/30/2021 02:19:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/filters.js
r10272 r10634 6 6 ( function ( $ ) { 7 7 $( document ).ready( function() { 8 $( '.filter-group-select' ).select2( {8 var $filters = $( '.filter-group-select' ).select2( { 9 9 allowClear: true, 10 } ); 11 12 // Try to force screen readers to use select element and hide select2. 13 $filters.each( function() { 14 if ( $( this ).hasClass( 'select2-hidden-accessible' ) ) { 15 $( this ).siblings( '.select2-container' ).find( '.selection' ).attr( { 'aria-hidden': 'true', 'tabindex': '-1' } ); 16 $( this ).removeAttr( 'aria-hidden' ).attr( 'tabindex', '0' ); 17 } 10 18 } ); 11 19 } );
Note: See TracChangeset
for help on using the changeset viewer.