input: numeric: select all content when focused (doesn't work on all browsers though)

This commit is contained in:
jean-emmanuel 2025-11-05 09:13:48 +01:00
parent 2a4c9d96fe
commit e7a864d84e

View file

@ -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()
})
}