@abgov/jsonforms-components 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.esm.js +14 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -5014,7 +5014,13 @@ const FormStepper = props => {
5014
5014
  children: step !== 1 ? jsx(GoAButton, {
5015
5015
  type: "secondary",
5016
5016
  disabled: disabledCategoryMap[step - 1],
5017
- onClick: () => prevPage(step, disabledCategoryMap),
5017
+ onClick: () => {
5018
+ const element = document.getElementById(`${path || `goa`}-form-stepper`);
5019
+ if (element) {
5020
+ element.scrollIntoView();
5021
+ }
5022
+ prevPage(step, disabledCategoryMap);
5023
+ },
5018
5024
  testId: "prev-button",
5019
5025
  children: "Previous"
5020
5026
  }) : jsx("div", {})
@@ -5022,7 +5028,13 @@ const FormStepper = props => {
5022
5028
  children: [step !== null && showNextBtn && jsx(GoAButton, {
5023
5029
  type: "primary",
5024
5030
  disabled: disabledCategoryMap[step - 1],
5025
- onClick: () => nextPage(step, disabledCategoryMap),
5031
+ onClick: () => {
5032
+ const element = document.getElementById(`${path || `goa`}-form-stepper`);
5033
+ if (element) {
5034
+ element.scrollIntoView();
5035
+ }
5036
+ nextPage(step, disabledCategoryMap);
5037
+ },
5026
5038
  testId: "next-button",
5027
5039
  children: "Next"
5028
5040
  }), !showNextBtn && !isFormSubmitted && jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",