diff --git a/lib/KDropdownMenu.vue b/lib/KDropdownMenu.vue index 6d307b74d..1f022d376 100644 --- a/lib/KDropdownMenu.vue +++ b/lib/KDropdownMenu.vue @@ -185,11 +185,11 @@ this.closePopover(); } }, - handleSelection(selection) { + handleSelection(selection, $event) { /** * Emitted when an option is selected */ - this.$emit('select', selection); + this.$emit('select', selection, $event); this.closePopover(); }, closePopover() { diff --git a/lib/keen/UiMenu.vue b/lib/keen/UiMenu.vue index 6221d95b5..7da1beb51 100644 --- a/lib/keen/UiMenu.vue +++ b/lib/keen/UiMenu.vue @@ -22,8 +22,8 @@ :target="option[keys.target]" :type="option[keys.type]" - @click.native="selectOption(option)" - @keydown.enter.native="selectOption(option)" + @click.native="($event) => selectOption(option, $event)" + @keydown.enter.native="($event) => selectOption(option, $event)" @keydown.esc.native.esc="closeMenu" :style="[ activeOutline ]" @@ -107,12 +107,12 @@ }, methods: { - selectOption(option) { + selectOption(option, $event) { if (option.disabled || option.type === 'divider') { return; } - this.$emit('select', option); + this.$emit('select', option, $event); this.closeMenu(); }, closeMenu() {