-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: JSONForm Select field validate empty string as an invalid value #13993
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
/ok-to-test sha=ef10ef7 |
Unable to find test scripts. Please add necessary tests to the PR. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2358744620. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2358744620. Click to view performance test results
|
1 similar comment
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2358744620. Click to view performance test results
|
/ok-to-test sha=ef10ef7 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2369036479. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2369036479. Click to view performance test results
|
1 similar comment
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2369036479. Click to view performance test results
|
Observation:
|
@chandannkumar Yes this problem still exists and we will fix this in the JSON Form Next steps epic as to fix that we have to upgrade the version of this widget. |
/ok-to-test sha=ef10ef7 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2375645712. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2375645712. Click to view performance test results
|
1 similar comment
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2375645712. Click to view performance test results
|
Tested this PR and working as expected |
Description
The Select field only considers
null
andundefined
as invalid values.But when we consider the select widget, it considers empty string as invalid value along with
null
andundefined
.This PR aligns the implementation and makes the JSON Form's select field consider and empty value as an invalid value when the
Required
property is enabled.Fixes #13981
Type of change
How Has This Been Tested?
Jest Test:
The validation function is tested in 3 test cases
Checklist:
Test coverage results 🧪
🟢 Total coverage has increased