fix resetting filtered users
This commit is contained in:
@@ -62,17 +62,17 @@ export default {
|
|||||||
id: 2,
|
id: 2,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
onEnter: args => {
|
onEnter: ({ items, query }) => {
|
||||||
this.query = args.query
|
this.query = query
|
||||||
this.filteredUsers = args.items
|
this.filteredUsers = items
|
||||||
},
|
},
|
||||||
onChange: args => {
|
onChange: ({ items, query }) => {
|
||||||
this.query = args.query
|
this.query = query
|
||||||
this.filteredUsers = args.items
|
this.filteredUsers = items
|
||||||
},
|
},
|
||||||
onExit: args => {
|
onExit: () => {
|
||||||
this.query = null
|
this.query = null
|
||||||
this.filteredUsers = args.items
|
this.filteredUsers = []
|
||||||
},
|
},
|
||||||
onKeyDown: ({ event }) => {
|
onKeyDown: ({ event }) => {
|
||||||
// pressing up arrow
|
// pressing up arrow
|
||||||
|
|||||||
Reference in New Issue
Block a user