@@ -208,7 +208,11 @@ export class MultipleSelectInstance {
208
208
this . choiceElm . appendChild ( createDomElement ( 'div' , { className : 'icon-caret' } ) ) ;
209
209
210
210
// default position is bottom
211
- this . dropElm = createDomElement ( 'div' , { className : `ms-drop ${ this . options . position } ` } , this . parentElm ) ;
211
+ this . dropElm = createDomElement (
212
+ 'div' ,
213
+ { className : `ms-drop ${ this . options . position } ` , ariaExpanded : 'false' } ,
214
+ this . parentElm
215
+ ) ;
212
216
213
217
// add data-name attribute when name option is defined
214
218
if ( name ) {
@@ -446,6 +450,7 @@ export class MultipleSelectInstance {
446
450
if ( ! dropVisible ) {
447
451
this . dropElm . style . left = '-10000' ;
448
452
this . dropElm . style . display = 'block' ;
453
+ this . dropElm . ariaExpanded = 'true' ;
449
454
}
450
455
451
456
const updateDataOffset = ( ) => {
@@ -479,6 +484,7 @@ export class MultipleSelectInstance {
479
484
if ( ! dropVisible ) {
480
485
this . dropElm . style . left = '0' ;
481
486
this . dropElm . style . display = 'none' ;
487
+ this . dropElm . ariaExpanded = 'false' ;
482
488
}
483
489
} else {
484
490
if ( this . ulElm ) {
@@ -992,6 +998,7 @@ export class MultipleSelectInstance {
992
998
this . parentElm . classList . add ( 'ms-parent-open' ) ;
993
999
this . choiceElm ?. querySelector ( 'div' ) ?. classList . add ( 'open' ) ;
994
1000
this . dropElm . style . display = 'block' ;
1001
+ this . dropElm . ariaExpanded = 'true' ;
995
1002
996
1003
if ( this . selectAllElm ?. parentElement ) {
997
1004
this . selectAllElm . parentElement . style . display = 'block' ;
@@ -1083,6 +1090,7 @@ export class MultipleSelectInstance {
1083
1090
this . parentElm . classList . remove ( 'ms-parent-open' ) ;
1084
1091
this . choiceElm ?. querySelector ( 'div' ) ?. classList . remove ( 'open' ) ;
1085
1092
this . dropElm . style . display = 'none' ;
1093
+ this . dropElm . ariaExpanded = 'false' ;
1086
1094
1087
1095
if ( this . options . container ) {
1088
1096
this . parentElm . appendChild ( this . dropElm ) ;
0 commit comments