Skip to content

Commit 8c8604c

Browse files
Merge pull request #26 from Tchoupinax/master
fix: stop propagation when clicking on the menu
2 parents b91509a + 14af206 commit 8c8604c

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

dist/vue-simple-context-menu.esm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ var __vue_render__ = function() {
200200
class: option.class,
201201
on: {
202202
click: function($event) {
203+
$event.stopPropagation();
203204
return _vm.optionClicked(option)
204205
}
205206
}

dist/vue-simple-context-menu.min.js

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/vue-simple-context-menu.umd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
class: option.class,
207207
on: {
208208
click: function($event) {
209+
$event.stopPropagation();
209210
return _vm.optionClicked(option)
210211
}
211212
}

src/vue-simple-context-menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<li
99
v-for="(option, index) in options"
1010
:key="index"
11-
@click="optionClicked(option)"
11+
@click.stop="optionClicked(option)"
1212
class="vue-simple-context-menu__item"
1313
:class="option.class"
1414
>

0 commit comments

Comments
 (0)