Problem
Our AddressSearch component was refactored to work with Form, but we missed a couple of things during the refactor:
- It should be able to load with a
defaultValue
- It should use a hint to display hint text. The hint should be replaced with an error message if there's one.
Why is this important
It standardizes the use of AddressSearch and follows the guidelines defined in the Forms design doc.
Solution
Add support for defaultValue and refactor usages of used as a hint for AddressSearch to the hint prop whenever possible.
Problem
Our
AddressSearchcomponent was refactored to work with Form, but we missed a couple of things during the refactor:defaultValueWhy is this important
It standardizes the use of AddressSearch and follows the guidelines defined in the Forms design doc.
Solution
Add support for
defaultValueand refactor usages of used as a hint for AddressSearch to thehintprop whenever possible.