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

@click.away event modifier #2010

Closed
JsonKody opened this issue Aug 29, 2020 · 1 comment
Closed

@click.away event modifier #2010

JsonKody opened this issue Aug 29, 2020 · 1 comment

Comments

@JsonKody
Copy link

JsonKody commented Aug 29, 2020

What problem does this feature solve?

Hi,
recently I've had a ton of problems with making some dropdown component in Vue2. Then I've looked on Alpine.js and saw probably best feature I've seen this year ...

@click.away="doStuff"

This is exactly the kind of neat feature Vue 3 needs. It's simple and effective.

What does the proposed API look like?

<dropdown-body @click.away="isOpen = false">
...
</dropdown-body>
@JsonKody JsonKody changed the title @click.away .. neat feature from Alpine would be awesome in Vue 3 @click.away event modifier Aug 29, 2020
@sqal
Copy link
Contributor

sqal commented Aug 29, 2020

vuejs/rfcs#167

@posva posva closed this as completed Aug 29, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants