kenobi-js 0.1.32 → 0.1.33
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/browser/dist.js +3 -5
- package/browser/dist.js.map +2 -2
- package/browser/dist.min.js +2 -2
- package/package.json +1 -1
package/browser/dist.js
CHANGED
|
@@ -1386,11 +1386,6 @@ var KenobiLib = (() => {
|
|
|
1386
1386
|
setMode("card");
|
|
1387
1387
|
}
|
|
1388
1388
|
}, [isOpen, mode]);
|
|
1389
|
-
y2(() => {
|
|
1390
|
-
if (config.status === "starting") {
|
|
1391
|
-
setIsOpen(false);
|
|
1392
|
-
}
|
|
1393
|
-
}, [config.status, setIsOpen]);
|
|
1394
1389
|
if (!isInline) {
|
|
1395
1390
|
useEnterExitAnimation(containerRef, !!config.isVisible && mode === "card", {
|
|
1396
1391
|
direction: config.direction || "top-to-bottom",
|
|
@@ -1935,6 +1930,9 @@ var KenobiLib = (() => {
|
|
|
1935
1930
|
this.host.remove();
|
|
1936
1931
|
}
|
|
1937
1932
|
update(newState) {
|
|
1933
|
+
if (newState.status === "starting" && this.config.status !== "starting") {
|
|
1934
|
+
this.isOpen = false;
|
|
1935
|
+
}
|
|
1938
1936
|
this.config = { ...this.config, ...newState };
|
|
1939
1937
|
this.applyHostStyles();
|
|
1940
1938
|
this.render();
|