Closed luckylwk closed 4 years ago
Can you have a look at this @jonashaefele . Adding a required field for async-select does not work currently
So what I am experiencing is the following: Whenever the scheduler opens there are two starting scenarios: either there is already a meeting_address
value or the value is an empty string.
When the value is set the form (and the field is flagged as required) the form does not want to proceed:
When I then change the value (using the google search) is still does not allow to continue:
Same behavior when changing the value
Do we have to add a manual validation function inside the field specification, or can we update the HDS to validate (what is a 'neater' solution at this stage?).
I think what happens is that the frontend changes, but the data (state) doesn't. Hence the onChange handlers not getting called and the required check not updating.
Shouldn't need a validate function. That is on top of the required check, not instead of.
Probably soemthing to do with all the filters like these:
https://github.com/luckylwk/hoppin-design-system/blob/v0.4.11/src/components/Form/Fields.js#L88
https://github.com/luckylwk/hoppin-design-system/blob/v0.4.11/src/components/Form/Fields.js#L142
Currently not working. It is required, but doesn't pick up on a value being there