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 }}
Repository navigation
isRequired validator doesn't support numeric values #328
If we have TCFormFields.TextInput component with type="number" and we use isRequired validate rule like validations={ isRequired: true }, then on rendering such component with value which is numerical there would be error in console:
index.js?15f1:23 Uncaught TypeError: value.trim is not a function
at Object.eval [as isRequired]
Activity
vikasrohit commentedon Aug 22, 2019
Good catch.
vikasrohit commentedon Aug 22, 2019
@maxceem are you fixing it along with your other changes or should we mark it for our next bug bash?
maxceem commentedon Aug 22, 2019
Fixed via PR #329
Tested it locally works good.