set caret to end

This commit is contained in:
Bui 2022-02-26 01:37:44 +00:00
parent 4f71a32bcf
commit 6c1cddf33f

View File

@ -429,6 +429,9 @@ class SongSelect{
}else if(this.search.active === 0){
this.searchSetActive(null)
this.search.input.focus()
setTimeout(() => {
this.search.input.setSelectionRange(this.search.input.value.length, this.search.input.value.length)
}, 0)
}else if(Number.isInteger(this.search.active)){
this.searchSetActive(this.search.active-1)
}else{