From ca201d8e1ddd16943da797eee2450c602dddb59c Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 23 Sep 2020 15:41:42 +0300 Subject: [PATCH] Migrated BlockUI to V3 --- src/components/blockui/BlockUI.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/blockui/BlockUI.vue b/src/components/blockui/BlockUI.vue index 7e99cc225..9bdc677b1 100755 --- a/src/components/blockui/BlockUI.vue +++ b/src/components/blockui/BlockUI.vue @@ -1,5 +1,5 @@ @@ -50,13 +50,10 @@ export default { document.activeElement.blur(); } else { - const target = this.$children ? this.$children[0]: null; - if (target) { - this.mask = document.createElement('div'); - this.mask.setAttribute('class', 'p-blockui'); - target.$el.appendChild(this.mask); - target.$el.style.position = 'relative'; - } + debugger; + this.mask = document.createElement('div'); + this.mask.setAttribute('class', 'p-blockui'); + this.$refs.container.appendChild(this.mask); } if (this.mask) { @@ -83,7 +80,7 @@ export default { DomHandler.removeClass(document.body, 'p-overflow-hidden'); } else { - this.$children[0].$el.removeChild(this.mask); + this.$refs.container.removeChild(this.mask); } this.$emit('unblock'); @@ -93,6 +90,10 @@ export default {