@egjs/flicking 4.7.0 → 4.7.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egjs/flicking",
3
- "version": "4.7.0",
3
+ "version": "4.7.3",
4
4
  "description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",
5
5
  "main": "dist/flicking.js",
6
6
  "module": "dist/flicking.esm.js",
@@ -136,7 +136,7 @@
136
136
  "typescript-transform-paths": "^2.2.3"
137
137
  },
138
138
  "dependencies": {
139
- "@egjs/axes": "^3.1.2",
139
+ "@egjs/axes": "^3.2.2",
140
140
  "@egjs/component": "^3.0.1",
141
141
  "@egjs/imready": "^1.1.3",
142
142
  "@egjs/list-differ": "^1.0.0"
@@ -384,7 +384,7 @@ abstract class Renderer {
384
384
 
385
385
  if (!resizeOnContentsReady || flicking.virtualEnabled) return;
386
386
 
387
- const hasContents = (panel: Panel) => !!panel.element.querySelector("img, video");
387
+ const hasContents = (panel: Panel) => panel.element && !!panel.element.querySelector("img, video");
388
388
  checkingPanels = checkingPanels.filter(panel => hasContents(panel));
389
389
 
390
390
  if (checkingPanels.length <= 0) return;