carbon-react 126.10.0 → 126.10.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.
|
@@ -114,7 +114,9 @@ export const ActionPopoverItem = ({
|
|
|
114
114
|
// focuses item on opening of actionPopover submenu
|
|
115
115
|
useEffect(() => {
|
|
116
116
|
if (focusItem) {
|
|
117
|
-
ref.current?.focus(
|
|
117
|
+
ref.current?.focus({
|
|
118
|
+
preventScroll: true
|
|
119
|
+
});
|
|
118
120
|
}
|
|
119
121
|
}, [focusItem]);
|
|
120
122
|
useEffect(() => {
|
|
@@ -123,7 +123,9 @@ const ActionPopoverItem = ({
|
|
|
123
123
|
// focuses item on opening of actionPopover submenu
|
|
124
124
|
(0, _react.useEffect)(() => {
|
|
125
125
|
if (focusItem) {
|
|
126
|
-
ref.current?.focus(
|
|
126
|
+
ref.current?.focus({
|
|
127
|
+
preventScroll: true
|
|
128
|
+
});
|
|
127
129
|
}
|
|
128
130
|
}, [focusItem]);
|
|
129
131
|
(0, _react.useEffect)(() => {
|