Skip to content

Commit

Permalink
chore: add TODO to update updateSelectionOnFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Jan 12, 2025
1 parent 57c9b65 commit a76db96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/event/selection/updateSelectionOnFocus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import {getContentEditable, hasOwnSelection} from '../../utils'

// The browser implementation seems to have changed.
// When focus is inside <input type="text"/>,
// Chrome updates Selection to be collapsed at the position of the input element.
// TODO: update implementation to match that of current browsers

/**
* Reset the Document Selection when moving focus into an element
* with own selection implementation.
Expand Down

0 comments on commit a76db96

Please sign in to comment.