You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
I'm using useForms with Yup validations and a thing I'm missing from this component is a way to validate properly what is input. It happens because when I'm inserting a new chip it's a string and when I press enter it goes into an array of strings. I want to validate both the array and the string (to check length for example) but only the string is sent to onBeforeAdd or Yup.
Would you consider also sending the array to a validator or onBeforeAdd? I think it'd be way more transparent.
Thank you!
The text was updated successfully, but these errors were encountered:
I'm using useForms with Yup validations and a thing I'm missing from this component is a way to validate properly what is input. It happens because when I'm inserting a new chip it's a string and when I press enter it goes into an array of strings. I want to validate both the array and the string (to check length for example) but only the string is sent to onBeforeAdd or Yup.
Would you consider also sending the array to a validator or onBeforeAdd? I think it'd be way more transparent.
Thank you!
The text was updated successfully, but these errors were encountered: