MDL-68167 lib: Clear single-select autocomplete elements with keyboard

Following MDL-57680, it should be possible to clear the selected option
using keyboard as well.
This commit is contained in:
Shamim Rezaie 2020-10-30 00:39:05 +11:00
parent 6fdfbc44f9
commit cb0bf0ffe0
2 changed files with 4 additions and 2 deletions

View File

@ -44,6 +44,7 @@
}} aria-labelledby="{{selectionId}}-label"{{!
}} role="listbox"{{!
}} aria-atomic="true"{{!
}} {{#multiple}}tabindex="0" aria-multiselectable="true"{{/multiple}}>
}} tabindex="0"{{!
}} {{#multiple}}aria-multiselectable="true"{{/multiple}}>
{{> core/form_autocomplete_selection_items }}
</div>

View File

@ -44,7 +44,8 @@
}} aria-labelledby="{{selectionId}}-label"{{!
}} role="listbox"{{!
}} aria-atomic="true"{{!
}}{{#multiple}} tabindex="0" aria-multiselectable="true"{{/multiple}}{{!
}} tabindex="0"{{!
}}{{#multiple}} aria-multiselectable="true"{{/multiple}}{{!
}}>
{{> core/form_autocomplete_selection_items }}
</div>