Fixed #5912 - BlockUI bug SSR: when I reload the page I get the following error

pull/5976/head
Mert Sincan 2024-06-27 11:07:11 +01:00
parent 16822d4cd8
commit 2eb5b4aa3b
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { createElement, blockBodyScroll, addClass, hasCSSAnimation, unblockBodyScroll } from '@primeuix/utils/dom'; import { addClass, blockBodyScroll, createElement, hasCSSAnimation, unblockBodyScroll } from '@primeuix/utils/dom';
import { ZIndex } from '@primeuix/utils/zindex'; import { ZIndex } from '@primeuix/utils/zindex';
import BaseBlockUI from './BaseBlockUI.vue'; import BaseBlockUI from './BaseBlockUI.vue';
@ -93,7 +93,7 @@ export default {
document.body.removeChild(this.mask); document.body.removeChild(this.mask);
unblockBodyScroll(); unblockBodyScroll();
} else { } else {
this.$refs.container.removeChild(this.mask); this.$refs.container?.removeChild(this.mask);
} }
this.isBlocked = false; this.isBlocked = false;