not select all text when user actively selects text
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user