ngx-mat-intl-tel-input icon indicating copy to clipboard operation
ngx-mat-intl-tel-input copied to clipboard

Fix reset input

Open Capelinha opened this issue 4 years ago • 5 comments

When I call the component's .reset() the phone number remains in the field

Capelinha avatar Jan 13 '21 14:01 Capelinha

@Capelinha this seems to work fine for me without the fix. In the test code as well, when I click the reset button, the values get cleared for the entire form, even this component. Can you maybe put up a stackblitz, so that we can verify it again

tanansatpal avatar Jan 24 '21 12:01 tanansatpal

For me, NgxMatIntlTelInputComponent.reset() works. But when I use Reactive Forms and do a reset() on the FormControl, it will not clear the input field. Is this a known issue?

hohler avatar Jan 26 '21 08:01 hohler

@hohler @tanansatpal Yes, my problem is related to reactive forms. The .reset() does not clear the field

Capelinha avatar Jan 29 '21 11:01 Capelinha

Any updates on this pull request?

Can't reset my phone input with reactive form..

jaradehr1 avatar May 06 '21 02:05 jaradehr1

For me, NgxMatIntlTelInputComponent.reset() works. But when I use Reactive Forms and do a reset() on the FormControl, it will not clear the input field. Is this a known issue?

Same here. Reactive Forms reset does not reset the tel input.

Lerado avatar Jul 27 '22 09:07 Lerado