diff --git a/browser/CHANGELOG.md b/browser/CHANGELOG.md index 9b96bb730..5420e63d7 100644 --- a/browser/CHANGELOG.md +++ b/browser/CHANGELOG.md @@ -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 diff --git a/browser/data-browser/src/components/TableEditor/hooks/usePasteCommand.ts b/browser/data-browser/src/components/TableEditor/hooks/usePasteCommand.ts index 95b3e1071..72b726604 100644 --- a/browser/data-browser/src/components/TableEditor/hooks/usePasteCommand.ts +++ b/browser/data-browser/src/components/TableEditor/hooks/usePasteCommand.ts @@ -38,6 +38,11 @@ export function usePasteCommand( 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) {