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

Odd behavior when using Actions with bind inputs #1578

Closed
kazzkiq opened this issue Jul 6, 2018 · 1 comment
Closed

Odd behavior when using Actions with bind inputs #1578

kazzkiq opened this issue Jul 6, 2018 · 1 comment

Comments

@kazzkiq
Copy link

kazzkiq commented Jul 6, 2018

I'm trying to use Actions (<element use:method>) for input formatting (mask), but for some reason it shows odd behavior on special circumstances.

I've tried two approaches. One using .addEventListener() to said input, and other using .set() to data from inside the Action. Both didn't work properly.

Here are two REPLs showing the odd behavior on both cases:

.addEventListener():
https://svelte.technology/repl?version=2.9.1&gist=a08e29c1548586929f4d78ad3d7fde02

.set():
https://svelte.technology/repl?version=2.9.1&gist=3469481210a03bf06a8fbef32c5f325f

@Conduitry
Copy link
Member

Closing this in favor of #2446, which is more specific about what's going on here.

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

2 participants