Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Refactored dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 23, 2019
1 parent fa58071 commit ceaa7d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Dropdown/main.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="dropdown">
<Popover
<v-popover
ref="popover"
contain-focus

Expand All @@ -12,19 +12,19 @@
<div class="dropdown__toggle" slot="toggle">
<slot name="toggle"></slot>
</div>
<Menu
<v-menu
@select="onSelect"
@close="$refs.popover.close()"
:options="options"
:contain-focus="containFocus"
></Menu>
</Popover>
/>
</v-popover>
</div>
</template>

<script>
import Popover from '../Popover';
import Menu from '../Menu';
import VPopover from '../Popover';
import VMenu from '../Menu';
export default {
name: 'VDropdown',
Expand Down Expand Up @@ -60,8 +60,8 @@ export default {
},
},
components: {
Popover,
Menu,
VPopover,
VMenu,
},
};
</script>

0 comments on commit ceaa7d3

Please sign in to comment.