From 68389f03d03f5203770100be25d2a37c21e2e35f Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 25 Feb 2021 10:21:04 +0300 Subject: [PATCH] Use document head instead --- src/components/dialog/Dialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dialog/Dialog.vue b/src/components/dialog/Dialog.vue index bac4165b7..1dc14f122 100755 --- a/src/components/dialog/Dialog.vue +++ b/src/components/dialog/Dialog.vue @@ -223,7 +223,7 @@ export default { if (!this.styleElement) { this.styleElement = document.createElement('style'); this.styleElement.type = 'text/css'; - document.body.appendChild(this.styleElement); + document.head.appendChild(this.styleElement); let innerHTML = ''; for (let breakpoint in this.breakpoints) { @@ -241,7 +241,7 @@ export default { }, destroyStyle() { if (this.styleElement) { - document.body.removeChild(this.styleElement); + document.head.removeChild(this.styleElement); this.styleElement = null; } }