mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
列表长度超出选中对象的索引时,索引重置为0
This commit is contained in:
@@ -196,6 +196,7 @@ export default {
|
||||
setSubInput() {
|
||||
utools.setSubInput(({ text }) => {
|
||||
this.searchWords = text;
|
||||
if (this.matchedItems.length < this.currentIndex + 1) this.currentIndex = 0
|
||||
}, this.options.options.placeholder);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user