mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fixed selected event emition
This commit is contained in:
parent
9072f9cccb
commit
013485b4b0
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,8 @@ export default {
|
|||
this.focusedIndex--
|
||||
}
|
||||
} else if (key === 'Enter') {
|
||||
this.onSelect(this.focusedIndex)
|
||||
this.onSelect(this.filteredChoices[this.focusedIndex])
|
||||
this.focusedIndex = 0
|
||||
} else {
|
||||
this.focusedIndex = 0
|
||||
}
|
||||
|
@ -108,7 +109,6 @@ export default {
|
|||
|
||||
onSelect (item) {
|
||||
this.$emit('selected', { item, index: this.choices.indexOf(item) })
|
||||
this.focusedIndex = 0
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue