File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -124,23 +124,14 @@ class FormOptionFieldBase extends FormFieldBase {
124124 let valueToSet = index < newEnumNames . length ? newEnumNames [ index ] : input . value ;
125125 let purifiedValue = window . DOMPurify ? window . DOMPurify . sanitize ( valueToSet ) : valueToSet ;
126126 span . innerHTML = purifiedValue ;
127- let richScreenReaderText = `${ this . _model . label . value } : ${ purifiedValue } ` ;
128- let plainScreenReaderText = window . DOMPurify ? window . DOMPurify . sanitize ( richScreenReaderText , { ALLOWED_TAGS : [ ] } ) : richScreenReaderText ;
129- input . setAttribute ( "aria-label" , plainScreenReaderText ) ;
130127 } ) ;
131128 } else {
132129 [ ...this . getOptions ( ) ] . forEach ( ( option , index ) => {
133130 let span = option . querySelector ( 'span' ) ;
134- let input = option . querySelector ( 'input' ) ;
135131 let purifiedValue = window . DOMPurify ? window . DOMPurify . sanitize ( newEnumNames [ index ] ) : newEnumNames [ index ] ;
136132 if ( span ) {
137133 span . innerHTML = purifiedValue ;
138134 }
139- if ( input ) {
140- let richScreenReaderText = `${ this . _model . label . value } : ${ purifiedValue } ` ;
141- let plainScreenReaderText = window . DOMPurify ? window . DOMPurify . sanitize ( richScreenReaderText , { ALLOWED_TAGS : [ ] } ) : richScreenReaderText ;
142- input . setAttribute ( "aria-label" , plainScreenReaderText ) ;
143- }
144135 } ) ;
145136 }
146137 }
You can’t perform that action at this time.
0 commit comments