mirror of
https://github.com/tenrok/vue-context.git
synced 2026-06-14 16:52:24 +03:00
Always emit close event
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -72,7 +72,7 @@ export default {
|
||||
eventOn(window, 'scroll', this.close);
|
||||
},
|
||||
|
||||
close(emit = true) {
|
||||
close() {
|
||||
if (! this.show) {
|
||||
return;
|
||||
}
|
||||
@@ -83,9 +83,7 @@ export default {
|
||||
this.removeScrollEventListener();
|
||||
}
|
||||
|
||||
if (emit) {
|
||||
this.$emit('close');
|
||||
}
|
||||
this.$emit('close');
|
||||
},
|
||||
|
||||
focusItem(index, items) {
|
||||
@@ -129,7 +127,7 @@ export default {
|
||||
},
|
||||
|
||||
onClick() {
|
||||
this.close(false);
|
||||
this.close();
|
||||
},
|
||||
|
||||
onKeydown(event) {
|
||||
|
||||
Reference in New Issue
Block a user