False alert on vue-click-outside
See original GitHub issueThere is a false alert of unused dependency when using vue-click-outside.
Usage
import ClickOutside from 'vue-click-outside'
export default {
name: 'Dropdown',
directives: {
ClickOutside
},
props: {
...
},
data () {
return {
...
}
}
}
Depcheck json output
{
"dependencies": ["vue-click-outside"],
"devDependencies": [
...
],
"missing": {},
"using": {
...
},
"invalidFiles": {
...
},
"invalidDirs": {}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Detect click outside element - Stack Overflow
There is the solution I used, which is based on Linus Borg answer and works fine with vue.js 2.0. Vue.directive('click-outside', { bind: function...
Read more >An Easy Way to Detect Clicks Outside an Element in Vue
The way we're going to detect an outside click is by listening to a click event (and touchstart for mobiles) on the whole...
Read more >Click outside directive - Vuetify
The v-click-outside directive calls a function when something outside of the target element is clicked on. This is used internally by components ...
Read more >click.outside to handle clicks outside an element · Issue #167
This seems like a trivial thing, but I think it would improve the DX of working with Vue. Naming. I think @click.outide is...
Read more >Close on click outside element in Vue - Laracasts
I would like the dropdown to disappear when someone clicks outside it. Copy Code methods:{ autoComplete (){ this.results=[]; //alert(this.searchText); ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tiagoppinho This is hopefully fixed with my PR, will release a new version and you can tell me if it fixes stuff for you.
Cheers!
Nice! Gotta love open source! 😃