Skip to content

Commit

Permalink
check restoring the handleSelectionChange call
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 21, 2022
1 parent 5ad253f commit 11a7c7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rich-text/src/component/use-input-and-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ export function useInputAndSelection( props ) {
applyRecord( record.current );
onSelectionChange( record.current.start, record.current.end );
}

rafId = defaultView.requestAnimationFrame( handleSelectionChange );
}

element.addEventListener( 'input', onInput );
Expand Down

0 comments on commit 11a7c7e

Please sign in to comment.