input: numeric: select all content when focused (doesn't work on all browsers though)
This commit is contained in:
parent
2a4c9d96fe
commit
e7a864d84e
1 changed files with 3 additions and 5 deletions
|
|
@ -126,11 +126,9 @@ class Input extends Canvas {
|
|||
}
|
||||
|
||||
|
||||
if (!this.getProp('numeric')) {
|
||||
setTimeout(()=>{
|
||||
this.input.setSelectionRange(0, this.input.value.length)
|
||||
})
|
||||
}
|
||||
setTimeout(()=>{
|
||||
this.input.select()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue