Date picker to control input values from external state #3712
Labels
community
For issues that have been raised by folks outside the core Salt team
component: date picker
type: enhancement 💡
New feature or request
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?
The text was updated successfully, but these errors were encountered: