-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(@rjsf/antd): Check for errors.length #2576
Fix(@rjsf/antd): Check for errors.length #2576
Conversation
8779d9b
to
1872dc2
Compare
It's disappointing that after almost a year my bug fix didn't get merged and now the build is failing so I'm guessing it's even less likely to get merged. |
@ChocolateLoverRaj Sorry for the slow response... Up until a few months ago this project was running on a skeleton crew (i.e. one person in grad school). If you'd be willing to fix the conflict and the tests, I'd be happy to review and merge this into the v5 beta |
Ok i will fix conflict |
f22dd4d
to
b1f9a6f
Compare
b1f9a6f
to
a33d9d8
Compare
CHANGELOG.md
Outdated
# v3.1.1 (upcoming) | ||
|
||
## @rjsf/antd | ||
- Do not show errors if `extraErrors` has `[]` (https://github.com/rjsf-team/react-jsonschema-form/pull/2576). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this up to the 5.0.0-beta.3
section?
@@ -0,0 +1,52 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be willing to add this to the Array.test.js
instead, at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import React from 'react'
is already in Array.test.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure you understand what I mean... You created a new EmptyErrorsArray.test.js
file... Can you instead, copy the two tests and paste them at around line 77 in the Array.test.js
file? Also, you'll need to now pass the required validator={validator}
parameter into the Form
Also, we are strictly checking formatting now, so you'll need to do |
@heath-freenome |
That is odd... What error(s) are you seeing? Can you show me screen shots? |
This is the error I get (on
|
Have you tried using the |
I updated npm to latest version:
|
Does this still happen after you do |
After running |
and add validator prop
packages/antd/test/Array.test.js
Outdated
}); | ||
|
||
describe("errors", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you delete these three lines, then they will all be in a single describe block, which is what I was hoping for
@ChocolateLoverRaj All set, if you'd prefer I merge, then I can |
Yes please merge |
Done, you'll have to delete the branch off of your fork yourself |
* Get semantic-ui theme on react 17 and dts-cli - Updated the `package*.json` to update to react 17 and switch from `tsdx` to `dts-cli` - Updated the tests to mock the `Ref` component from `@fluentui/react-component-ref` because it causes tests to fail * - Ran `cs-format` over `semantic-ui` after upgrading to `dts-cli` that uses a newer version of `prettier` * - Added the same additional Array tests that were added in #2576 * - Updated migration guide and `CHANGELOG.md`
Reasons for making this change
Fixes #2575
Checklist