fix(item): only add click event listener to items with inputs (#22352)

This stops screen readers, such as NVDA, from reading every item as clickable even when it is text only.

fixes #22011
This commit is contained in:
Brandy Carney
2020-11-04 16:19:38 -05:00
committed by GitHub
parent 9752cd6371
commit 9659ad6334
8 changed files with 58 additions and 14 deletions

View File

@ -299,7 +299,7 @@ const focusPreviousElementOnDismiss = async (overlayEl: any) => {
await overlayEl.onDidDismiss();
previousElement.focus();
}
};
export const dismiss = async (
overlay: OverlayInterface,