Skip to content

Commit

Permalink
chore: add TODO to simulate FocusEvent in browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Jan 12, 2025
1 parent 5057e39 commit 57c9b65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/event/focus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import {findClosest, getActiveElement, isFocusable} from '../utils'
import {updateSelectionOnFocus} from './selection'
import {wrapEvent} from './wrapEvent'

// Browsers do not dispatch FocusEvent if the document does not have focus.
// TODO: simulate FocusEvent in browsers

/**
* Focus closest focusable element.
*/
Expand Down

0 comments on commit 57c9b65

Please sign in to comment.