From 3a001d96b8e22bd210bfb45ce017cf2b12bd2797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Sun, 19 Jan 2025 22:26:04 +0100 Subject: [PATCH] FIX: Can cut and paste in Custom Format Dialog Fixes #240 It is a pity we have to do this. There probably is a better way --- webapp/IronCalc/src/components/formatPicker.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/IronCalc/src/components/formatPicker.tsx b/webapp/IronCalc/src/components/formatPicker.tsx index 64c29c6..071dfa7 100644 --- a/webapp/IronCalc/src/components/formatPicker.tsx +++ b/webapp/IronCalc/src/components/formatPicker.tsx @@ -66,6 +66,9 @@ const FormatPicker = (properties: FormatPickerProps) => { spellCheck="false" onClick={(event) => event.stopPropagation()} onFocus={(event) => event.target.select()} + onPaste={(event) => event.stopPropagation()} + onCopy={(event) => event.stopPropagation()} + onCut={(event) => event.stopPropagation()} />