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

feature: add support for debouncing x-on.away #1054

Merged
merged 1 commit into from
Feb 4, 2021
Merged

feature: add support for debouncing x-on.away #1054

merged 1 commit into from
Feb 4, 2021

Conversation

ryangjchandler
Copy link
Contributor

This PR is in response to #1053. It definitely seems like something that should be supported, so here you go.

The test suite wasn't playing very nice with me, I couldn't get the .debounce tests to work with the .away modifier, even though it's all working correctly in the browser.

I'll give it another go later on, but for now, here is the relevant logic.

@calebporzio
Copy link
Collaborator

Thanks Ryan!

@calebporzio calebporzio merged commit 95cff65 into alpinejs:master Feb 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants