cx 24.11.0 → 24.11.2

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/dist/ui.js CHANGED
@@ -1456,7 +1456,10 @@ function unfocusElement(target, unfocusParentOverlay) {
1456
1456
  (!unfocusParentOverlay || ((_el$dataset2 = el.dataset) == null ? void 0 : _el$dataset2.focusableOverlayContainer))
1457
1457
  );
1458
1458
  });
1459
- if (focusableParent && focusableParent !== document.body) focusableParent.focus();
1459
+ if (focusableParent && focusableParent !== document.body)
1460
+ focusableParent.focus({
1461
+ preventScroll: true,
1462
+ });
1460
1463
  else activeElement.blur();
1461
1464
  FocusManager.nudge();
1462
1465
  }
package/dist/widgets.js CHANGED
@@ -4277,11 +4277,7 @@ function tooltipMouseMove(e, parentInstance, tooltip, options) {
4277
4277
  };
4278
4278
  setTimeout(function () {
4279
4279
  var relatedElement = instance.widget.relatedElement;
4280
- if (
4281
- !canceled &&
4282
- (instance.mouseOverTarget || instance.data.alwaysVisible) &&
4283
- relatedElement.ownerDocument.body.contains(relatedElement)
4284
- ) {
4280
+ if (!canceled && instance.mouseOverTarget && relatedElement.ownerDocument.body.contains(relatedElement)) {
4285
4281
  dismiss = instance.widget.open(instance, {
4286
4282
  onPipeUpdate: function onPipeUpdate(cb) {
4287
4283
  instance.update = cb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cx",
3
- "version": "24.11.0",
3
+ "version": "24.11.2",
4
4
  "description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
5
5
  "main": "index.js",
6
6
  "jsnext:main": "src/index.js",
@@ -161,10 +161,10 @@ export function unfocusElement(target = null, unfocusParentOverlay = true) {
161
161
  //find the closest focusable parent of the target element and focus it instead
162
162
  let focusableParent = closestParent(
163
163
  target,
164
- (el) => isFocusable(el) && (!unfocusParentOverlay || el.dataset?.focusableOverlayContainer)
164
+ (el) => isFocusable(el) && (!unfocusParentOverlay || el.dataset?.focusableOverlayContainer),
165
165
  );
166
166
 
167
- if (focusableParent && focusableParent !== document.body) focusableParent.focus();
167
+ if (focusableParent && focusableParent !== document.body) focusableParent.focus({ preventScroll: true });
168
168
  else activeElement.blur();
169
169
 
170
170
  FocusManager.nudge();
@@ -228,11 +228,7 @@ function tooltipMouseMove(e, parentInstance, tooltip, options = {}) {
228
228
  };
229
229
  setTimeout(() => {
230
230
  let { relatedElement } = instance.widget;
231
- if (
232
- !canceled &&
233
- (instance.mouseOverTarget || instance.data.alwaysVisible) &&
234
- relatedElement.ownerDocument.body.contains(relatedElement)
235
- ) {
231
+ if (!canceled && instance.mouseOverTarget && relatedElement.ownerDocument.body.contains(relatedElement)) {
236
232
  dismiss = instance.widget.open(instance, {
237
233
  onPipeUpdate: (cb) => {
238
234
  instance.update = cb;