Skip to content

Conversation

Nareshe31
Copy link
Contributor

@Nareshe31 Nareshe31 commented Mar 9, 2025

Reasons for making this change

Antd radio is not disabled when disabled is set in ui schema

Fixes #4481

Checklist

  • I'm adding or updating code
    • I've added and/or updated tests. I've run npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR

@heath-freenome
Copy link
Member

@Nareshe31 Great fix! Thanks for that. In order to ensure this doesn't get regressed in the future, would you be open to adding a new test in the formTests.tsx in the snapshot-tests package to render a radio widget entirely disabled? Then you would have to update (via npm run test:update) and add all the snapshots for all the themes in your PR. Thanks!

@Nareshe31
Copy link
Contributor Author

Sure @heath-freenome. I will add new test and update the PR

@heath-freenome
Copy link
Member

Also, don't forget to update the CHANGELOG.md file

@heath-freenome
Copy link
Member

@Nareshe31 how close are you to adding the new test? I'm about to cut a new release and was hoping to get this in

@heath-freenome
Copy link
Member

@Nareshe31 NVM, I will add the tests myself and merge this ticket.

@heath-freenome heath-freenome merged commit db2462f into rjsf-team:main Mar 12, 2025
5 checks passed
heath-freenome added a commit that referenced this pull request Mar 12, 2025
There is another place where the ESM build needs an update to for proper import of AJV standalone code.
- Added a new `ajvReplacer` that adds `/index.js` to the end of `ajv/dist/standalone`
- Updated `@rjsf/validator-ajv8` to add the `ajvReplacer` to the `tsconfig.replacer.json` and `tsc.build.json`
  - Also fixed up some formatting around imports in a few files
- Updated `.gitignore` to add `ajvReplacer.js`
- Updated `formTests.ts` to add tests for the fix in [#4519](#4519)
  - Updated the snapshots for these new tests
- Updated the `CHANGELOG.md` accordingly
heath-freenome added a commit that referenced this pull request Mar 13, 2025
* Fixed ESM issue with validator-ajv8
There is another place where the ESM build needs an update to for proper import of AJV standalone code.
- Added a new `ajvReplacer` that adds `/index.js` to the end of `ajv/dist/standalone`
- Updated `@rjsf/validator-ajv8` to add the `ajvReplacer` to the `tsconfig.replacer.json` and `tsc.build.json`
  - Also fixed up some formatting around imports in a few files
- Updated `.gitignore` to add `ajvReplacer.js`
- Updated `formTests.ts` to add tests for the fix in [#4519](#4519)
  - Updated the snapshots for these new tests
- Updated the `CHANGELOG.md` accordingly

* - Fixed comment
@Nareshe31
Copy link
Contributor Author

Hey @heath-freenome , thanks for merging the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Radio button in RJSF/ANTD not being disabled

2 participants