mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-09 16:04:45 +00:00
Add close event on tab
This commit is contained in:
parent
9893850a7b
commit
66b9d1de83
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
<template>
|
||||
<div class="md-menu-content" @keydown.esc="close" tabindex="-1">
|
||||
<div
|
||||
class="md-menu-content"
|
||||
@keydown.esc.prevent="close"
|
||||
@keydown.tab.prevent="close"
|
||||
tabindex="-1">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue