From e70b1cfa8cdbeea217d075064c4fc4fbee6e2885 Mon Sep 17 00:00:00 2001 From: Stefan Popov Date: Thu, 3 Mar 2022 10:40:57 +0100 Subject: [PATCH] Fix dialog structure search for computed props --- package.json | 2 +- src/components/Dialog/SDialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3a8075e4..fbe74841 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "1.0.28", + "version": "1.0.29", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/" diff --git a/src/components/Dialog/SDialog.vue b/src/components/Dialog/SDialog.vue index 5d5ab598..007f628d 100644 --- a/src/components/Dialog/SDialog.vue +++ b/src/components/Dialog/SDialog.vue @@ -238,7 +238,7 @@ export default class SDialog extends Mixins(BorderRadiusMixin, DesignSystemInjec this.computedTop = this.top return } - const dialog = wrapper.children[0] as HTMLElement + const dialog = wrapper.getElementsByClassName('el-dialog')[0] as HTMLElement const top = wrapper.clientHeight - dialog.clientHeight > 0 ? Math.floor((wrapper.clientHeight - dialog.clientHeight) / 2) : 0