From c8b10b8276cc81b4bb02288b300d5541270eb964 Mon Sep 17 00:00:00 2001 From: "Gabriele N. Tornetta" Date: Sat, 6 Mar 2021 13:09:42 +0000 Subject: [PATCH] fix(search): allow paste in search box --- src/views/application.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/application.tsx b/src/views/application.tsx index ab9c297b7..9888a39ad 100644 --- a/src/views/application.tsx +++ b/src/views/application.tsx @@ -373,9 +373,13 @@ export class Application extends StatelessComponent { } onDocumentPaste = (ev: Event) => { + if (document.activeElement != null && document.activeElement.nodeName === "INPUT") + return + ev.preventDefault() ev.stopPropagation() + const clipboardData = (ev as ClipboardEvent).clipboardData if (!clipboardData) return const pasted = clipboardData.getData('text')