Closed PeterCadwell closed 7 years ago
Hey @PeterCadwell,
SHORT ANSWER: disables the input.
You can pass the disabled param (set as true) and the input is going to be disabled. It is just the common disabled
option of the Ember input
helper:
{{place-autocomplete-field
value= model.address2
handlerController= this
inputClass= 'place-autocomplete--input-2'
inputId='place-autocomplete--input-2'
placeChangedCallback="placeChangedSecondInput"
restrictions=restrictions
disabled=true -> THIS ONE
}}
BTW, @PeterCadwell you give an idea, maybe if the input is disabled, the component should stop listening to the google events...
@dmuneras We'd like to add support for that logic. Would you accept a PR for this?
@jakiestfu sure!, you can implement it and I will be glad to review it and merge it.
I am going to close this, we already addressed the question and we are waiting for the contribution. :D
What does
disabled
attribute do in the component? I'd like for a way to enable/disable this component via thedisabled
property.