ember-phone-input icon indicating copy to clipboard operation
ember-phone-input copied to clipboard

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

Open svvitale opened this issue 5 years ago • 2 comments

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.

svvitale avatar Nov 11 '19 23:11 svvitale

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

dbendaou avatar Nov 18 '19 13:11 dbendaou

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! :)

pierreavn avatar Feb 18 '21 16:02 pierreavn