Skip to content

Commit 930a86c

Browse files
committed
main.DomEvents: getTargetData() => enhance the tabIndex getter #6670
1 parent 5282158 commit 930a86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/DomEvents.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ class DomEvents extends Base {
399399
scrollTop : node.scrollTop,
400400
scrollWidth : node.scrollWidth,
401401
style : node.style?.cssText,
402-
tabIndex : node.tabIndex,
402+
tabIndex : node.getAttribute?.('tabindex') ? node.tabIndex : null,
403403
tagName : node.tagName?.toLowerCase()
404404
}
405405
}

0 commit comments

Comments
 (0)