diff --git a/lib/KDropdownMenu.vue b/lib/KDropdownMenu.vue index fc8d51c62..30410b775 100644 --- a/lib/KDropdownMenu.vue +++ b/lib/KDropdownMenu.vue @@ -123,6 +123,7 @@ sibling ? this.$nextTick(() => sibling.focus()) : this.$nextTick(() => this.setFocus()); // if a TAB key, not an arrow key, close the popover and advance to next item in the tab index } else if ((event.key == 'Tab' || event.keyCode == 9) && popoverIsOpen) { + this.$emit('tab', event); this.closePopover(); } }, @@ -134,6 +135,7 @@ this.closePopover(); }, closePopover() { + this.$emit('close'); this.$refs.popover.close(); }, focusOnButton() {