diff --git a/CHANGELOG.md b/CHANGELOG.md index 65ddd16e27..1a68f836c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,7 +59,7 @@ Our versioning strategy is as follows: * `[templates/nextjs-sxa]` Don't let Image component wrap with tag when TargetUrl is not configured. ([#1593](https://github.com/Sitecore/jss/issues/1593)) * `[templates/nextjs]` Next config header plugin for CORS. ([#1597](https://github.com/Sitecore/jss/pull/1597)) * `[templates/nextjs]` Ensure dictionary data is only fetched when layout data is present for a route ([#1608](https://github.com/Sitecore/jss/pull/1608)) -* `[sitecore-jss-react-forms]` Form should be blocked while submit is in progress to avoid submit spam ([#1611](https://github.com/Sitecore/jss/pull/1611)) +* `[sitecore-jss-react-forms]` Form should be blocked while submit is in progress to avoid submit spam ([#1611](https://github.com/Sitecore/jss/pull/1611) [#1614](https://github.com/Sitecore/jss/pull/1614)) * `[templates/nextjs]` Fix linting errors, fix type error by upgrading @react/types to v18.2.22 ([#1613](https://github.com/Sitecore/jss/pull/1613)) ### 🛠 Breaking Changes diff --git a/packages/sitecore-jss-react-forms/src/components/form.test.tsx b/packages/sitecore-jss-react-forms/src/components/form.test.tsx index 6280c10025..08abf26d95 100644 --- a/packages/sitecore-jss-react-forms/src/components/form.test.tsx +++ b/packages/sitecore-jss-react-forms/src/components/form.test.tsx @@ -468,7 +468,7 @@ describe('
', () => { c.setState({ submitInProgress: true }); - expect(c.find('form').prop('inert')).to.be.true; + expect(c.find('form').prop('inert')).to.be.equal('true'); }); it('should return form to non-inert state after submit is done', () => { diff --git a/packages/sitecore-jss-react-forms/src/components/form.tsx b/packages/sitecore-jss-react-forms/src/components/form.tsx index c8e1a6aa4e..0206332509 100644 --- a/packages/sitecore-jss-react-forms/src/components/form.tsx +++ b/packages/sitecore-jss-react-forms/src/components/form.tsx @@ -119,7 +119,7 @@ export class Form extends Component action={action} method="POST" onSubmit={this.onSubmit.bind(this)} - {...{ inert: isInert || undefined }} + {...{ inert: isInert ? 'true' : undefined }} > {fieldComponents}