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

@ -285,7 +285,7 @@ export class Datetime implements ComponentInterface {
if (data.name !== 'ampm' && this.datetimeValue.ampm !== undefined) {
changeData['ampm'] = {
value: this.datetimeValue.ampm
}
};
}
this.updateDatetimeValue(changeData);