Skip to content

Commit 9b9b40e

Browse files
committed
fix keyword change event
1 parent 9e1d025 commit 9b9b40e

File tree

9 files changed

+11
-8
lines changed

9 files changed

+11
-8
lines changed

dist/js/app.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/app.js.gz

7 Bytes
Binary file not shown.

dist/js/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/app.js.map.gz

6 Bytes
Binary file not shown.

dist/js/multiple-select.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/multiple-select.js.gz

7 Bytes
Binary file not shown.

dist/js/multiple-select.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/multiple-select.js.map.gz

6 Bytes
Binary file not shown.

src/store/Store.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ class Store extends EventEmitter {
5353
* @memberof Store
5454
*/
5555
get keyword () {
56-
return this._keyword || null
56+
return this._keyword || ''
5757
}
5858

5959
set keyword (keyword) {
60-
if (this._keyword !== keyword.trim()) {
60+
if (this.keyword !== keyword.trim()) {
6161
this._keyword = keyword.trim()
6262
this._hoveredItemIndex = null
63+
console.log('keywordChange')
6364
this.emit('keywordChange', keyword)
6465
}
6566
}

0 commit comments

Comments
 (0)