Skip to content

Commit 0987ec2

Browse files
committed
Rebuild
1 parent 7982904 commit 0987ec2

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

dist/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@
632632
this.$refs.modal && (this.modal.renderedHeight = this.$refs.modal.getBoundingClientRect().height);
633633
},
634634
connectObserver: function() {
635-
this.mutationObserver && this.mutationObserver.observe(this.$refs.modal, {
635+
this.mutationObserver && this.mutationObserver.observe(this.$refs.overlay, {
636636
childList: !0,
637637
attributes: !0,
638638
subtree: !0
@@ -641,8 +641,11 @@
641641
disconnectObserver: function() {
642642
this.mutationObserver && this.mutationObserver.disconnect();
643643
},
644+
beforeTransitionEnter: function() {
645+
this.addDraggableListeners(), this.connectObserver();
646+
},
644647
afterTransitionEnter: function() {
645-
this.addDraggableListeners(), this.connectObserver(), this.$emit("opened", this.createModalEvent({
648+
this.$emit("opened", this.createModalEvent({
646649
state: !0
647650
}));
648651
},
@@ -958,6 +961,7 @@
958961
name: _vm.transition
959962
},
960963
on: {
964+
"before-enter": _vm.beforeTransitionEnter,
961965
"after-enter": _vm.afterTransitionEnter,
962966
"after-leave": _vm.afterTransitionLeave
963967
}

dist/ssr.index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@
586586
this.$refs.modal && (this.modal.renderedHeight = this.$refs.modal.getBoundingClientRect().height);
587587
},
588588
connectObserver: function() {
589-
this.mutationObserver && this.mutationObserver.observe(this.$refs.modal, {
589+
this.mutationObserver && this.mutationObserver.observe(this.$refs.overlay, {
590590
childList: !0,
591591
attributes: !0,
592592
subtree: !0
@@ -595,8 +595,11 @@
595595
disconnectObserver: function() {
596596
this.mutationObserver && this.mutationObserver.disconnect();
597597
},
598+
beforeTransitionEnter: function() {
599+
this.addDraggableListeners(), this.connectObserver();
600+
},
598601
afterTransitionEnter: function() {
599-
this.addDraggableListeners(), this.connectObserver(), this.$emit("opened", this.createModalEvent({
602+
this.$emit("opened", this.createModalEvent({
600603
state: !0
601604
}));
602605
},
@@ -912,6 +915,7 @@
912915
name: _vm.transition
913916
},
914917
on: {
918+
"before-enter": _vm.beforeTransitionEnter,
915919
"after-enter": _vm.afterTransitionEnter,
916920
"after-leave": _vm.afterTransitionLeave
917921
}

dist/ssr.nocss.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@
523523
this.$refs.modal && (this.modal.renderedHeight = this.$refs.modal.getBoundingClientRect().height);
524524
},
525525
connectObserver: function() {
526-
this.mutationObserver && this.mutationObserver.observe(this.$refs.modal, {
526+
this.mutationObserver && this.mutationObserver.observe(this.$refs.overlay, {
527527
childList: !0,
528528
attributes: !0,
529529
subtree: !0
@@ -532,8 +532,11 @@
532532
disconnectObserver: function() {
533533
this.mutationObserver && this.mutationObserver.disconnect();
534534
},
535+
beforeTransitionEnter: function() {
536+
this.addDraggableListeners(), this.connectObserver();
537+
},
535538
afterTransitionEnter: function() {
536-
this.addDraggableListeners(), this.connectObserver(), this.$emit("opened", this.createModalEvent({
539+
this.$emit("opened", this.createModalEvent({
537540
state: !0
538541
}));
539542
},
@@ -843,6 +846,7 @@
843846
name: _vm.transition
844847
},
845848
on: {
849+
"before-enter": _vm.beforeTransitionEnter,
846850
"after-enter": _vm.afterTransitionEnter,
847851
"after-leave": _vm.afterTransitionLeave
848852
}

0 commit comments

Comments
 (0)