Refactor #3965 - Refactor on responsive components

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-05 14:24:13 +03:00
parent 6693602ca3
commit dfcbf5152a
9 changed files with 13 additions and 13 deletions

View file

@ -43,7 +43,6 @@
</template>
<script>
import BaseDialog from './BaseDialog.vue';
import FocusTrap from 'primevue/focustrap';
import TimesIcon from 'primevue/icons/times';
import WindowMaximizeIcon from 'primevue/icons/windowmaximize';
@ -52,6 +51,7 @@ import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
import { computed } from 'vue';
import BaseDialog from './BaseDialog.vue';
export default {
name: 'Dialog',
@ -250,7 +250,7 @@ export default {
this.closeButton = el;
},
createStyle() {
if (!this.styleElement) {
if (!this.styleElement && !this.isUnstyled) {
this.styleElement = document.createElement('style');
this.styleElement.type = 'text/css';
document.head.appendChild(this.styleElement);