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

@ -16,13 +16,13 @@
</template>
<script>
import BaseOverlayPanel from './BaseOverlayPanel.vue';
import FocusTrap from 'primevue/focustrap';
import TimesIcon from 'primevue/icons/times';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
import BaseOverlayPanel from './BaseOverlayPanel.vue';
export default {
name: 'OverlayPanel',
@ -239,7 +239,7 @@ export default {
this.container = 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);