@patternfly/react-table 6.1.0-prerelease.8 → 6.1.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "6.1.0-prerelease.8",
3
+ "version": "6.1.0",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -40,10 +40,10 @@
40
40
  "subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
41
41
  },
42
42
  "dependencies": {
43
- "@patternfly/react-core": "^6.1.0-prerelease.8",
44
- "@patternfly/react-icons": "^6.1.0-prerelease.4",
45
- "@patternfly/react-styles": "^6.1.0-prerelease.3",
46
- "@patternfly/react-tokens": "^6.1.0-prerelease.3",
43
+ "@patternfly/react-core": "^6.1.0",
44
+ "@patternfly/react-icons": "^6.1.0",
45
+ "@patternfly/react-styles": "^6.1.0",
46
+ "@patternfly/react-tokens": "^6.1.0",
47
47
  "lodash": "^4.17.21",
48
48
  "tslib": "^2.8.1"
49
49
  },
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18",
52
52
  "react-dom": "^17 || ^18"
53
53
  },
54
- "gitHead": "0f9245023fb9bdf860c9eee91b6fe160b6c261c5"
54
+ "gitHead": "fc70165f6d07de6a24f6943c826c1432ea6d44cf"
55
55
  }
@@ -168,8 +168,17 @@ export const DashboardWrapper: React.FC<DashboardWrapperProps> = ({
168
168
  </PageSidebar>
169
169
  );
170
170
 
171
+ const handleClick = (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
172
+ event.preventDefault();
173
+
174
+ const mainContentElement = document.getElementById(mainContainerId ?? 'main-content-page-layout-default-nav');
175
+ if (mainContentElement) {
176
+ mainContentElement.focus();
177
+ }
178
+ };
179
+
171
180
  const PageSkipToContent = (
172
- <SkipToContent href={`#${mainContainerId ?? 'main-content-page-layout-default-nav'}`}>
181
+ <SkipToContent onClick={handleClick} href={`#${mainContainerId ?? 'main-content-page-layout-default-nav'}`}>
173
182
  Skip to content
174
183
  </SkipToContent>
175
184
  );