diff --git a/src/components/desktop/AmountInput.vue b/src/components/desktop/AmountInput.vue index 3889495b..b0a0cd1d 100644 --- a/src/components/desktop/AmountInput.vue +++ b/src/components/desktop/AmountInput.vue @@ -140,6 +140,11 @@ function onKeyUpDown(e: KeyboardEvent): void { return; } + if (props.readonly || props.disabled) { + e.preventDefault(); + return; + } + const digitGroupingSymbol = getCurrentDigitGroupingSymbol(); const decimalSeparator = getCurrentDecimalSeparator(); @@ -235,7 +240,7 @@ function onKeyUpDown(e: KeyboardEvent): void { } function onPaste(e: ClipboardEvent): void { - if (!e.clipboardData) { + if (!e.clipboardData || props.readonly || props.disabled) { e.preventDefault(); return; }