Closed yaminagile closed 5 months ago
onChange will only fire when the input value changes and not if the autocompletet address is selected
@AnthonyNahas thanks for the replying onChange will not firing also when we enter the address manually and remove the autocomplete address
@AnthonyNahas I just came across this issue. I am not getting any onChange events emitted when changing the value of the input either. I am trying to set a default value for an input with this directive when creating a formArray onInit. Any advice would be appreciated.
@ryancraigmartin You are using reactive forms than you can pass the initial value in formControl for default value for the input
@ryancraigmartin You are using reactive forms than you can pass the initial value in formControl for default value for the input
Unfortunately that doesn't seem to work. The form input doesn't register the initial value as an autocomplete selection, so the value is passed but never actually triggers a change on the input.
Hi, having the same issue. Hoping for a fix soon.
I wpuld appreciate a PR
Bug Report or Feature Request (mark with an
x
)OS and Version?
Linux Debian (Ubuntu 16.04)
Versions
Repro steps
component.html
component.ts
Desired functionality
I have been using
angular-material-extensions/google-maps-autocomplete@5.0.0
, I have to show required validation message if user cleared input box, &onAutocompleteSelected
firing during address selection butonChange
is not firing if user enter the address manually or select from autocomplete or remove address from input, would you please help me with that? whyonChange
event is not emitting?Mention any other details that might be useful
You can see that
onChange
Defined in projects/angular-material-extensions/google-maps-autocomplete/src/lib/directives/mat-google-maps-autocomplete.directive.ts:39 but never emitted this event