Skip to content

Commit 9868a7b

Browse files
committed
Move references to modal to nextClick just to be sure
1 parent ccde9ed commit 9868a7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

view/base/templates/script/component-partial/modal-component-partial.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use Magento\Framework\View\Element\Template;
1313
initModalClosing() {
1414
this.$watch('modalOpen', (modalOpen) => {
1515
if (false === modalOpen) {
16-
this.$refs.modal.close();
16+
this.$nextTick(() => this.$refs.modal.close());
1717
} else {
18-
this.$refs.modal.showModal();
18+
this.$nextTick(() => this.$refs.modal.showModal());
1919
}
2020
});
2121

0 commit comments

Comments
 (0)