Skip to content

Commit 3400b4e

Browse files
Pollepsjoepio
authored andcommitted
#771 Don't use custom paste logic when user is typing
1 parent 72cc018 commit 3400b4e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

browser/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This changelog covers all three packages, as they are (for now) updated as a who
88

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

1314
## v0.36.2

browser/data-browser/src/components/TableEditor/hooks/usePasteCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export function usePasteCommand<T>(
3838
return;
3939
}
4040

41+
// Don't use custom paste logic when the user is focussed on an input
42+
if (document.activeElement?.tagName === 'INPUT') {
43+
return;
44+
}
45+
4146
const htmlData = event.clipboardData?.getData('text/html');
4247

4348
if (htmlData) {

0 commit comments

Comments
 (0)