Open origami-z opened 2 months ago
UI Components
Have been trying to integrate @salt-ds/lab DatePicker component with React-Hook-Form.
@salt-ds/lab
DatePicker
Below is the implementation for controlled DatePicker with React-Hook-Form.
Point to consider :
https://stackblitz.com/edit/salt-template-emlnbf?file=App.tsx
Enable startDateStringValue and endDateStringValue to be controlled props in DateInput ?
startDateStringValue
endDateStringValue
DateInput
-
now part of ongoing date picker work
Area
UI Components
The problem
Have been trying to integrate
@salt-ds/lab
DatePicker
component with React-Hook-Form.Below is the implementation for controlled DatePicker with React-Hook-Form.
Point to consider :
https://stackblitz.com/edit/salt-template-emlnbf?file=App.tsx
The solution
Enable
startDateStringValue
andendDateStringValue
to be controlled props inDateInput
?Alternatives and examples
-
Are you a JPMorgan Chase & Co. employee?