cx 26.2.4 → 26.3.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/widgets.js CHANGED
@@ -3340,13 +3340,13 @@ class OverlayBeacon extends VDOM.Component {
3340
3340
  display: "none",
3341
3341
  },
3342
3342
  }),
3343
- this.state?.children,
3343
+ this.el && this.props.childrenFactory(this.el),
3344
3344
  ],
3345
3345
  });
3346
3346
  }
3347
3347
  componentDidMount() {
3348
3348
  this.setState({
3349
- children: this.props.childrenFactory(this.el),
3349
+ beaconRendered: true,
3350
3350
  });
3351
3351
  }
3352
3352
  }
@@ -4255,11 +4255,11 @@ class Window extends OverlayBase {
4255
4255
  render(context, instance, key) {
4256
4256
  var header = this.renderHeader(context, instance, "header");
4257
4257
  var footer = this.renderFooter(context, instance, "footer");
4258
- return jsx(OverlayBeacon, {
4259
- childrenFactory: (beaconEl) =>
4260
- jsx(
4261
- WindowComponent,
4262
- {
4258
+ return jsx(
4259
+ OverlayBeacon,
4260
+ {
4261
+ childrenFactory: (beaconEl) =>
4262
+ jsx(WindowComponent, {
4263
4263
  beaconEl: beaconEl,
4264
4264
  instance: instance,
4265
4265
  header: header,
@@ -4267,10 +4267,10 @@ class Window extends OverlayBase {
4267
4267
  subscribeToBeforeDismiss: context.options.subscribeToBeforeDismiss,
4268
4268
  parentEl: context.options.parentEl,
4269
4269
  children: this.renderContents(context, instance),
4270
- },
4271
- key,
4272
- ),
4273
- });
4270
+ }),
4271
+ },
4272
+ key,
4273
+ );
4274
4274
  }
4275
4275
  }
4276
4276
  Window.prototype.baseClass = "window";
@@ -7933,6 +7933,7 @@ const validationCheck = (date, data, disabledDaysOfWeek) => {
7933
7933
  };
7934
7934
  class CalendarCmp extends VDOM.Component {
7935
7935
  el = null;
7936
+ unsubscribeWheel;
7936
7937
  constructor(props) {
7937
7938
  super(props);
7938
7939
  let { data } = props.instance;
@@ -8111,7 +8112,9 @@ class CalendarCmp extends VDOM.Component {
8111
8112
  if (calendarWidget.autoFocus && this.el) this.el.focus();
8112
8113
  if (this.el) {
8113
8114
  tooltipParentDidMount$1(this.el, ...getFieldTooltip(this.props.instance));
8114
- this.el.addEventListener("wheel", (e) => this.handleWheel(e));
8115
+ this.unsubscribeWheel = addEventListenerWithOptions(this.el, "wheel", (e) => this.handleWheel(e), {
8116
+ passive: false,
8117
+ });
8115
8118
  }
8116
8119
  }
8117
8120
  UNSAFE_componentWillReceiveProps(props) {
@@ -8127,6 +8130,7 @@ class CalendarCmp extends VDOM.Component {
8127
8130
  componentWillUnmount() {
8128
8131
  offFocusOut(this);
8129
8132
  tooltipParentWillUnmount$1(this.props.instance);
8133
+ this.unsubscribeWheel?.();
8130
8134
  }
8131
8135
  showYearDropdown() {
8132
8136
  if (this.el && this.el.firstChild) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cx",
3
- "version": "26.2.4",
3
+ "version": "26.3.2",
4
4
  "description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
5
5
  "exports": {
6
6
  "./data": {