|
@@ -17,11 +17,13 @@ function mapTags(tag) {
|
|
|
}
|
|
|
|
|
|
function extractTextForMagnify(e) {
|
|
|
- const ariaLabel = e.path[0].getAttribute('aria-label')
|
|
|
- if (e.path[0].getAttribute('aria-label')) {
|
|
|
- return {
|
|
|
- elemDisc: '',
|
|
|
- elemContent: ariaLabel
|
|
|
+ if (e.type === 'focusin') {
|
|
|
+ const ariaLabel = e.path[0].getAttribute('aria-label')
|
|
|
+ if (ariaLabel) {
|
|
|
+ return {
|
|
|
+ elemDisc: '',
|
|
|
+ elemContent: ariaLabel
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|