Skip to content

Commit

Permalink
#771 Don't use custom paste logic when user is typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Jan 11, 2024
1 parent 72cc018 commit 06be17e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export function usePasteCommand<T>(
return;
}

// Don't use custom paste logic when the user is focussed on an input
if (document.activeElement?.tagName === 'INPUT') {
return;
}

const htmlData = event.clipboardData?.getData('text/html');

if (htmlData) {
Expand Down

0 comments on commit 06be17e

Please sign in to comment.