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

Phone input doesn't update when its bound variable is set/cleared externally #146

Open
svvitale opened this issue Nov 11, 2019 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@svvitale
Copy link

When using this input, it's not possible to clear or reset the input. Example usage:

{{phone-input initialCountry="us" number=phone update=(action "phoneUpdated")}}

On form submit, I call this.set("phone", null), but the input field maintains its value. I couldn't find a way to clear it without resorting to jQuery.

@dbendaou
Copy link
Member

Hello, thanks for spotting this ! I'll try to have a look by the end of the week :)

@dbendaou dbendaou added the bug Something isn't working label Nov 18, 2019
@dbendaou dbendaou self-assigned this Nov 18, 2019
@pierreavn
Copy link

Hi, did you found a fix for this issue? I'm experiencing the same thing... This is working well to set the value to anything else, but it doesn't work for empty value - null or empty string (the goal is to clear the field). Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants