question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False alert on vue-click-outside

See original GitHub issue

There 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rumplcommented, Jul 2, 2019

@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!

1reaction
rumplcommented, Jul 1, 2019

Nice! Gotta love open source! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found