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 authored and joepio committed Jan 11, 2024
1 parent 72cc018 commit 3400b4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This changelog covers all three packages, as they are (for now) updated as a who

- [#747](https://github.com/atomicdata-dev/atomic-server/issues/747) Show ontology classes on new resource page.
- [#770](https://github.com/atomicdata-dev/atomic-server/issues/770) Display more info on search result page.
- [#771](https://github.com/atomicdata-dev/atomic-server/issues/771) Tables: Don't paste in multiple rows when focussed on an input
- Fix server not rebuilding client when files changed.

## v0.36.2
Expand Down
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 3400b4e

Please sign in to comment.