diff --git a/src/components/desktop/AmountInput.vue b/src/components/desktop/AmountInput.vue index a1d3d0d9..14969d02 100644 --- a/src/components/desktop/AmountInput.vue +++ b/src/components/desktop/AmountInput.vue @@ -267,7 +267,10 @@ function onPaste(e: ClipboardEvent): void { function onClick(e: MouseEvent): void { if (!props.disabled && !props.readonly && props.modelValue === 0 && e.target instanceof HTMLInputElement) { const input = e.target as HTMLInputElement; - input?.select(); + + if ((!input?.selectionStart && !input?.selectionEnd) || input?.selectionStart === input?.selectionEnd) { + input?.select(); + } } }