Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ npm install vue-click-outside
<template>
<div>
<div v-click-outside="hide" @click="toggle">Toggle</div>
<div v-show="opened">Popup item</div>
<div v-show="opened" ref="mypopup">Popup item</div>
</div>
</template>

Expand All @@ -40,7 +40,7 @@ export default {

mounted () {
// prevent click outside event with popupItem.
this.popupItem = this.$el
this.popupItem = this.$refs.mypopup
},

// do not forget this section
Expand Down