From d31eb4c89cd0a53eb3caaf2d0ce2f317c251aa89 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 4 Jul 2023 08:47:22 +0000 Subject: update fullcalendar --- .../packages/web-component/index.global.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'library/fullcalendar/packages/web-component/index.global.js') diff --git a/library/fullcalendar/packages/web-component/index.global.js b/library/fullcalendar/packages/web-component/index.global.js index aa22a52a3..8f6a13c0b 100644 --- a/library/fullcalendar/packages/web-component/index.global.js +++ b/library/fullcalendar/packages/web-component/index.global.js @@ -1,7 +1,7 @@ /*! -FullCalendar Web Component v6.0.3 -Docs & License: https://fullcalendar.io -(c) 2022 Adam Shaw +FullCalendar Web Component v6.1.8 +Docs & License: https://fullcalendar.io/docs/web-component +(c) 2023 Adam Shaw */ (function (core) { 'use strict'; @@ -43,8 +43,17 @@ Docs & License: https://fullcalendar.io this._calendar.resetOptions(options); } else { - this.innerHTML = '
'; - let calendarEl = this.querySelector('div'); + let root; + if (this.hasAttribute('shadow')) { + this.attachShadow({ mode: 'open' }); + root = this.shadowRoot; + } + else { + // eslint-disable-next-line @typescript-eslint/no-this-alias + root = this; + } + root.innerHTML = '
'; + let calendarEl = root.querySelector('div'); let calendar = new core.Calendar(calendarEl, options); calendar.render(); this._calendar = calendar; -- cgit v1.2.3