@lemonadejs/modal 5.2.1 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -784,8 +784,10 @@ if (!lemonade && typeof (require) === 'function') {
|
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
// Auto adjust
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
queueMicrotask(() => {
|
|
788
|
+
adjustHorizontal(self);
|
|
789
|
+
adjustVertical(self);
|
|
790
|
+
});
|
|
789
791
|
} else {
|
|
790
792
|
// Hide backdrop
|
|
791
793
|
if (backdrop) {
|
|
@@ -799,11 +801,15 @@ if (!lemonade && typeof (require) === 'function') {
|
|
|
799
801
|
self.el.style[property] = '';
|
|
800
802
|
}
|
|
801
803
|
|
|
802
|
-
if (
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
804
|
+
if (self.closed === false) {
|
|
805
|
+
queueMicrotask(() => {
|
|
806
|
+
if (property === 'top') {
|
|
807
|
+
adjustVertical(self);
|
|
808
|
+
}
|
|
809
|
+
if (property === 'left') {
|
|
810
|
+
adjustHorizontal(self);
|
|
811
|
+
}
|
|
812
|
+
});
|
|
807
813
|
}
|
|
808
814
|
} else if (property === 'position') {
|
|
809
815
|
if (self.position) {
|