Skip to content

Commit

Permalink
Redirect beforeinput
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 14, 2022
1 parent 075e831 commit 3466d7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function useInput() {
}
}

const events = [ 'input', 'keydown' ];
const events = [ 'beforeinput', 'input', 'keydown' ];

events.forEach( ( eventType ) => {
node.addEventListener( eventType, onInput );
Expand Down

0 comments on commit 3466d7e

Please sign in to comment.