mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
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:
@ -299,7 +299,7 @@ const focusPreviousElementOnDismiss = async (overlayEl: any) => {
|
||||
|
||||
await overlayEl.onDidDismiss();
|
||||
previousElement.focus();
|
||||
}
|
||||
};
|
||||
|
||||
export const dismiss = async (
|
||||
overlay: OverlayInterface,
|
||||
|
Reference in New Issue
Block a user