fix(editor): pasting into database multiselect input auto adds a new tag (#12693)

Co-authored-by: 3720 <zuozijian1994@gmail.com>
This commit is contained in:
Aadiand3720 authored and GitHub committed 2025-06-09 09:37:54 +08:00
1 parent 115496aa8e
commit f69a98eb8c
2 files changed
+16

No files matched your search

@@ -79,6 +79,14 @@ export class TableClipboardController implements ReactiveController {
const event = _context.get('clipboardState').raw;
event.stopPropagation();
const active = document.activeElement as HTMLElement | null;
if (
active &&
(active.tagName === 'INPUT' || active.tagName === 'TEXTAREA')
) {
return true;
}
const clipboardData = event.clipboardData;
if (!clipboardData) return;
@@ -78,6 +78,14 @@ export class TableClipboardController implements ReactiveController {
const event = _context.get('clipboardState').raw;
event.stopPropagation();
const active = document.activeElement as HTMLElement | null;
if (
active &&
(active.tagName === 'INPUT' || active.tagName === 'TEXTAREA')
) {
return true;
}
const clipboardData = event.clipboardData;
if (!clipboardData) return;