Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call function with params #14

Open
waghcwb opened this issue May 17, 2018 · 3 comments
Open

Cannot call function with params #14

waghcwb opened this issue May 17, 2018 · 3 comments

Comments

@waghcwb
Copy link

waghcwb commented May 17, 2018

I cannot pass a callback with params to the directive.

So, this works v-click-outside="hideMenu" but this does not v-click-outside="handleMenuVisibility(false)"

@aziev
Copy link

aziev commented May 25, 2018

Really need this feature

@alisalahio
Copy link

alisalahio commented May 27, 2018

I found a workaround.

You could use v-click-outside="() => handleMenuVisibility(false)"

@Serzhs
Copy link

Serzhs commented Jun 13, 2019

I found a workaround.

You could use v-click-outside="() => handleMenuVisibility(false)"

I had an issue with callback, so you need to pass another callback param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants