v-outside | good click outside solution based on vue directives,很棒的基于 | Router library
kandi X-RAY | v-outside Summary
kandi X-RAY | v-outside Summary
good click outside solution based on vue directives,很棒的基于 vue 指令的 click outside 解决方案。
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of v-outside
v-outside Key Features
v-outside Examples and Code Snippets
Community Discussions
Trending Discussions on v-outside
QUESTION
Background
I created a custom directive (to detect clicks outside of an element) by following this guide: https://tahazsh.com/detect-outside-click-in-vue.
Element:
...ANSWER
Answered 2019-Dec-06 at 12:22It is so, because your ref
is not what refName
is.
Your ref is "burger" but refName is a exclude
property given to v-closable
which you then restructure.
In tutorial you've mention refName
is button
. So I'm assuming it is the same in your code.
Make sure both ref="burger"
and
v-closable="{
exclude: ['burger'], // this is your refName
handler: 'onClose'
}"
are the same.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install v-outside
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page