Adam Shaw 6 лет назад
Родитель
Сommit
09999d8036
3 измененных файлов с 17 добавлено и 12 удалено
  1. 1 1
      packages-premium
  2. 11 11
      packages/bundle/package.json
  3. 5 0
      packages/daygrid/src/Popover.tsx

+ 1 - 1
packages-premium

@@ -1 +1 @@
-Subproject commit 7e742f3fdcce4c15a61a4810a2c873c201c6cf20
+Subproject commit 5dfb57b3b0fb01b15db9dc0da5fafd74c5776fa3

+ 11 - 11
packages/bundle/package.json

@@ -1,16 +1,16 @@
 {
   "private": true,
   "devDependencies": {
-    "@fullcalendar/core": "4.3.1",
-    "@fullcalendar/interaction": "4.3.0",
-    "@fullcalendar/daygrid": "4.3.0",
-    "@fullcalendar/timegrid": "4.3.0",
-    "@fullcalendar/list": "4.3.0",
-    "@fullcalendar/bootstrap": "4.3.0",
-    "@fullcalendar/rrule": "4.3.0",
-    "@fullcalendar/moment": "4.3.0",
-    "@fullcalendar/moment-timezone": "4.3.0",
-    "@fullcalendar/luxon": "4.3.0",
-    "@fullcalendar/google-calendar": "4.3.0"
+    "@fullcalendar/core": "4.4.0",
+    "@fullcalendar/interaction": "4.4.0",
+    "@fullcalendar/daygrid": "4.4.0",
+    "@fullcalendar/timegrid": "4.4.0",
+    "@fullcalendar/list": "4.4.0",
+    "@fullcalendar/bootstrap": "4.4.0",
+    "@fullcalendar/rrule": "4.4.0",
+    "@fullcalendar/moment": "4.4.0",
+    "@fullcalendar/moment-timezone": "4.4.0",
+    "@fullcalendar/luxon": "4.4.0",
+    "@fullcalendar/google-calendar": "4.4.0"
   }
 }

+ 5 - 0
packages/daygrid/src/Popover.tsx

@@ -90,6 +90,11 @@ export default class Popover extends BaseComponent<PopoverProps> {
   updateSize() {
     let { alignmentEl, topAlignmentEl } = this.props
     let rootEl = this.rootElRef.current
+
+    if (!rootEl) {
+      return // not sure why this was null, but we shouldn't let external components call updateSize() anyway
+    }
+
     let dims = rootEl.getBoundingClientRect() // only used for width,height
     let alignment = alignmentEl.getBoundingClientRect()