@carbon/react 1.67.0-rc.0 → 1.67.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.
|
@@ -133,7 +133,6 @@ const Menu = /*#__PURE__*/forwardRef(function Menu(_ref, forwardRef) {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
function focusItem(e) {
|
|
136
|
-
e?.preventDefault();
|
|
137
136
|
const currentItem = focusableItems.findIndex(item => item.ref?.current?.contains(document.activeElement));
|
|
138
137
|
let indexToFocus = currentItem;
|
|
139
138
|
|
|
@@ -158,6 +157,7 @@ const Menu = /*#__PURE__*/forwardRef(function Menu(_ref, forwardRef) {
|
|
|
158
157
|
if (indexToFocus !== currentItem) {
|
|
159
158
|
const nodeToFocus = focusableItems[indexToFocus];
|
|
160
159
|
nodeToFocus.ref?.current?.focus();
|
|
160
|
+
e?.preventDefault();
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
function handleBlur(e) {
|
|
@@ -143,7 +143,6 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(_ref, forwardRef) {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
function focusItem(e) {
|
|
146
|
-
e?.preventDefault();
|
|
147
146
|
const currentItem = focusableItems.findIndex(item => item.ref?.current?.contains(document.activeElement));
|
|
148
147
|
let indexToFocus = currentItem;
|
|
149
148
|
|
|
@@ -168,6 +167,7 @@ const Menu = /*#__PURE__*/React.forwardRef(function Menu(_ref, forwardRef) {
|
|
|
168
167
|
if (indexToFocus !== currentItem) {
|
|
169
168
|
const nodeToFocus = focusableItems[indexToFocus];
|
|
170
169
|
nodeToFocus.ref?.current?.focus();
|
|
170
|
+
e?.preventDefault();
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
function handleBlur(e) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/react",
|
|
3
3
|
"description": "React components for the Carbon Design System",
|
|
4
|
-
"version": "1.67.0
|
|
4
|
+
"version": "1.67.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.24.7",
|
|
51
|
-
"@carbon/feature-flags": "^0.23.0
|
|
52
|
-
"@carbon/icons-react": "^11.50.0
|
|
53
|
-
"@carbon/layout": "^11.27.0
|
|
54
|
-
"@carbon/styles": "^1.66.0
|
|
51
|
+
"@carbon/feature-flags": "^0.23.0",
|
|
52
|
+
"@carbon/icons-react": "^11.50.0",
|
|
53
|
+
"@carbon/layout": "^11.27.0",
|
|
54
|
+
"@carbon/styles": "^1.66.0",
|
|
55
55
|
"@floating-ui/react": "^0.26.0",
|
|
56
56
|
"@ibm/telemetry-js": "^1.5.0",
|
|
57
57
|
"classnames": "2.5.1",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@babel/preset-env": "^7.24.7",
|
|
80
80
|
"@babel/preset-react": "^7.24.7",
|
|
81
81
|
"@babel/preset-typescript": "^7.24.7",
|
|
82
|
-
"@carbon/test-utils": "^10.33.0
|
|
83
|
-
"@carbon/themes": "^11.41.0
|
|
82
|
+
"@carbon/test-utils": "^10.33.0",
|
|
83
|
+
"@carbon/themes": "^11.41.0",
|
|
84
84
|
"@figma/code-connect": "^1.0.6",
|
|
85
85
|
"@rollup/plugin-babel": "^6.0.0",
|
|
86
86
|
"@rollup/plugin-commonjs": "^26.0.0",
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"**/*.scss",
|
|
145
145
|
"**/*.css"
|
|
146
146
|
],
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "ea46616d9ea6afb2f14b862a344203e54d19e5a0"
|
|
148
148
|
}
|