Skip to content

Commit

Permalink
fix(ui-a11y-utils): handleDocumentClick should only capture mouse events
Browse files Browse the repository at this point in the history
  • Loading branch information
balzss committed Oct 26, 2023
1 parent 3568250 commit 53bed32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-a11y-utils/src/FocusRegion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class FocusRegion {
addEventListener(doc, 'mousedown', this.captureDocumentClick, true)
)
this._listeners.push(
addEventListener(doc, 'click', this.handleDocumentClick)
addEventListener(doc, 'mouseup', this.handleDocumentClick)
)

Array.from(doc.getElementsByTagName('iframe')).forEach((el) => {
Expand Down

0 comments on commit 53bed32

Please sign in to comment.