Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
instantValidation
prop for TextArea (#2355)
## Summary: - Adds instantValidation prop so there is an option to validate on blur. If instantValidation is false, the error is also cleared on change - If textarea is required and instantValidation is false, validate whenever the user tabs away from the field Issue: WB-1781 Next: I'll work on refactoring TextField to a function component first and then will add the same `instantValidation` prop to TextField ## Test plan: - Instant Validation docs are reviewed (`/?path=/docs/packages-form-textarea--docs#instant%20validation`) - Instant Validation works as expected (see docs for expected behaviour) (`/?path=/story/packages-form-textarea--instant-validation`) Author: beaesguerra Reviewers: beaesguerra, jandrade, marcysutton Required Reviewers: Approved By: jandrade Checks: ✅ Chromatic - Get results on regular PRs (ubuntu-latest, 20.x), ✅ Test / Test (ubuntu-latest, 20.x, 2/2), ✅ Test / Test (ubuntu-latest, 20.x, 1/2), ✅ Lint / Lint (ubuntu-latest, 20.x), ✅ Check build sizes (ubuntu-latest, 20.x), ✅ Chromatic - Build on regular PRs / chromatic (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ⏭️ Chromatic - Skip on Release PR (changesets), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ gerald, ⏭️ dependabot Pull Request URL: #2355
- Loading branch information