File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/mgt-components/src/components/mgt-people-picker Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,8 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
684684 return html `` ;
685685 }
686686
687+ // aria-label needs to provide a falsy default to avoid setting the attribute to "undefined" or "null"
688+ // direct used of the ariaLabel property on the input element only works in Chromium browsers
687689 return html `
688690 < div class ="${ classMap ( inputClasses ) } ">
689691 < input
@@ -693,7 +695,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
693695 role ="combobox "
694696 placeholder =${ placeholder }
695697 autocomplete ="off"
696- .ariaLabel =${ this . ariaLabel }
698+ aria-label =${ this . ariaLabel || '' }
697699 aria-controls="suggestions-list"
698700 aria-haspopup="listbox"
699701 aria-autocomplete="list"
You can’t perform that action at this time.
0 commit comments