Skip to content

Commit 2e66fcf

Browse files
fix: use emit method instead of $emit
1 parent 408aca5 commit 2e66fcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/VueAccessibleSelect/VueAccessibleSelect.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default {
225225
break
226226
case 40:
227227
if (currentOptionIndex !== this.options.length - 1)
228-
this.$emit(this.options[currentOptionIndex + 1].value)
228+
this.emit(this.options[currentOptionIndex + 1].value)
229229
break
230230
case 13:
231231
setTimeout(() => {
@@ -239,10 +239,10 @@ export default {
239239
return `v-select-option-${this.options.indexOf(option)}_${this.localId_}`
240240
},
241241
setFirstSelected() {
242-
this.$emit(this.options[0].value)
242+
this.emit(this.options[0].value)
243243
},
244244
setLastSelected() {
245-
this.$emit(this.options[this.options.length - 1].value)
245+
this.emit(this.options[this.options.length - 1].value)
246246
},
247247
escapeHandler() {
248248
this.open = false

0 commit comments

Comments
 (0)