mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Prevent text selection when select is focused
This commit is contained in:
@@ -146,6 +146,7 @@ export class Select {
|
||||
handleFocus() {
|
||||
this.hasFocus = true;
|
||||
this.slFocus.emit();
|
||||
this.input.setSelectionRange(0, 0);
|
||||
}
|
||||
|
||||
handleKeyDown(event: KeyboardEvent) {
|
||||
|
||||
Reference in New Issue
Block a user