Skip to content

Commit 5f2f0a3

Browse files
liangxiaojianTidyzq
authored andcommitted
修复 searchbar 延时搜索时没有取最新 keyword 的 bug
1 parent ff56b44 commit 5f2f0a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/searchbar/searchbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Component({
108108
this.lastSearch = Date.now()
109109
this.timerId = setTimeout(() => {
110110
this.data
111-
.search(e.detail.value)
111+
.search(this.data.value)
112112
.then((json) => {
113113
this.setData({
114114
result: json

0 commit comments

Comments
 (0)