ngx-kit 8.3.0 → 8.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.
@@ -212,7 +212,7 @@ class DragRef {
212
212
  scrollListener;
213
213
  resizeListener;
214
214
  init() {
215
- this.previousTransform = getComputedStyle(this.el).getPropertyValue('transform');
215
+ this.previousTransform = getComputedStyle?.(this.el)?.getPropertyValue?.('transform');
216
216
  }
217
217
  withDropList(list) {
218
218
  if (this.dropList === list)
@@ -993,7 +993,7 @@ class ScrollFrame {
993
993
  }
994
994
  }
995
995
  function scrolls(el) {
996
- const s = getComputedStyle(el);
996
+ const s = getComputedStyle?.(el);
997
997
  // `hidden` containers still scroll programmatically; `clip` never does.
998
998
  const scrollish = (v) => v === 'auto' || v === 'scroll' || v === 'overlay' || v === 'hidden';
999
999
  return scrollish(s.overflowX) || scrollish(s.overflowY);
@@ -1298,7 +1298,7 @@ class SortSession {
1298
1298
  }
1299
1299
  }
1300
1300
  function initialTransform(el) {
1301
- const t = getComputedStyle(el).transform;
1301
+ const t = getComputedStyle?.(el)?.transform;
1302
1302
  return t && t !== 'none' ? ` ${t}` : '';
1303
1303
  }
1304
1304