@elastic/eui 79.0.0 → 79.0.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.
- package/es/components/flyout/flyout.js +1 -1
- package/es/components/focus_trap/focus_trap.js +1 -1
- package/lib/components/flyout/flyout.js +1 -1
- package/lib/components/focus_trap/focus_trap.js +1 -1
- package/optimize/es/components/flyout/flyout.js +1 -1
- package/optimize/es/components/focus_trap/focus_trap.js +1 -1
- package/optimize/lib/components/flyout/flyout.js +1 -1
- package/optimize/lib/components/focus_trap/focus_trap.js +1 -1
- package/package.json +1 -1
|
@@ -255,7 +255,7 @@ export var EuiFlyout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
255
255
|
};
|
|
256
256
|
var flyout = ___EmotionJSX(EuiFocusTrap, _extends({
|
|
257
257
|
disabled: isPushed,
|
|
258
|
-
scrollLock:
|
|
258
|
+
scrollLock: hasOverlayMask,
|
|
259
259
|
clickOutsideDisables: !ownFocus,
|
|
260
260
|
onClickOutside: onClickOutside
|
|
261
261
|
}, focusTrapProps), ___EmotionJSX(Element, _extends({
|
|
@@ -133,7 +133,7 @@ export var EuiFocusTrap = /*#__PURE__*/function (_Component) {
|
|
|
133
133
|
*/
|
|
134
134
|
scrollLock: false
|
|
135
135
|
});
|
|
136
|
-
return ___EmotionJSX(FocusOn, focusOnProps, children, scrollLock && ___EmotionJSX(RemoveScrollBar, {
|
|
136
|
+
return ___EmotionJSX(FocusOn, focusOnProps, children, !isDisabled && scrollLock && ___EmotionJSX(RemoveScrollBar, {
|
|
137
137
|
gapMode: gapMode
|
|
138
138
|
}));
|
|
139
139
|
}
|
|
@@ -260,7 +260,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
260
260
|
};
|
|
261
261
|
var flyout = (0, _react2.jsx)(_focus_trap.EuiFocusTrap, _extends({
|
|
262
262
|
disabled: isPushed,
|
|
263
|
-
scrollLock:
|
|
263
|
+
scrollLock: hasOverlayMask,
|
|
264
264
|
clickOutsideDisables: !ownFocus,
|
|
265
265
|
onClickOutside: onClickOutside
|
|
266
266
|
}, focusTrapProps), (0, _react2.jsx)(Element, _extends({
|
|
@@ -134,7 +134,7 @@ var EuiFocusTrap = /*#__PURE__*/function (_Component) {
|
|
|
134
134
|
*/
|
|
135
135
|
scrollLock: false
|
|
136
136
|
});
|
|
137
|
-
return (0, _react2.jsx)(_reactFocusOn.FocusOn, focusOnProps, children, scrollLock && (0, _react2.jsx)(_reactRemoveScrollBar.RemoveScrollBar, {
|
|
137
|
+
return (0, _react2.jsx)(_reactFocusOn.FocusOn, focusOnProps, children, !isDisabled && scrollLock && (0, _react2.jsx)(_reactRemoveScrollBar.RemoveScrollBar, {
|
|
138
138
|
gapMode: gapMode
|
|
139
139
|
}));
|
|
140
140
|
}
|
|
@@ -243,7 +243,7 @@ export var EuiFlyout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
243
243
|
};
|
|
244
244
|
var flyout = ___EmotionJSX(EuiFocusTrap, _extends({
|
|
245
245
|
disabled: isPushed,
|
|
246
|
-
scrollLock:
|
|
246
|
+
scrollLock: hasOverlayMask,
|
|
247
247
|
clickOutsideDisables: !ownFocus,
|
|
248
248
|
onClickOutside: onClickOutside
|
|
249
249
|
}, focusTrapProps), ___EmotionJSX(Element, _extends({
|
|
@@ -126,7 +126,7 @@ export var EuiFocusTrap = /*#__PURE__*/function (_Component) {
|
|
|
126
126
|
*/
|
|
127
127
|
scrollLock: false
|
|
128
128
|
});
|
|
129
|
-
return ___EmotionJSX(FocusOn, focusOnProps, children, scrollLock && ___EmotionJSX(RemoveScrollBar, {
|
|
129
|
+
return ___EmotionJSX(FocusOn, focusOnProps, children, !isDisabled && scrollLock && ___EmotionJSX(RemoveScrollBar, {
|
|
130
130
|
gapMode: gapMode
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
@@ -249,7 +249,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
249
249
|
};
|
|
250
250
|
var flyout = (0, _react2.jsx)(_focus_trap.EuiFocusTrap, (0, _extends2.default)({
|
|
251
251
|
disabled: isPushed,
|
|
252
|
-
scrollLock:
|
|
252
|
+
scrollLock: hasOverlayMask,
|
|
253
253
|
clickOutsideDisables: !ownFocus,
|
|
254
254
|
onClickOutside: onClickOutside
|
|
255
255
|
}, focusTrapProps), (0, _react2.jsx)(Element, (0, _extends2.default)({
|
|
@@ -128,7 +128,7 @@ var EuiFocusTrap = /*#__PURE__*/function (_Component) {
|
|
|
128
128
|
*/
|
|
129
129
|
scrollLock: false
|
|
130
130
|
});
|
|
131
|
-
return (0, _react2.jsx)(_reactFocusOn.FocusOn, focusOnProps, children, scrollLock && (0, _react2.jsx)(_reactRemoveScrollBar.RemoveScrollBar, {
|
|
131
|
+
return (0, _react2.jsx)(_reactFocusOn.FocusOn, focusOnProps, children, !isDisabled && scrollLock && (0, _react2.jsx)(_reactRemoveScrollBar.RemoveScrollBar, {
|
|
132
132
|
gapMode: gapMode
|
|
133
133
|
}));
|
|
134
134
|
}
|