jsbox-cview 1.5.4 → 1.5.5
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.
|
@@ -37,7 +37,7 @@ export class PresentedPageController extends BaseController {
|
|
|
37
37
|
}, layout, events
|
|
38
38
|
});
|
|
39
39
|
this._sheet = new Sheet<ControllerRootView, UIView, UiTypes.ViewOptions>({
|
|
40
|
-
presentMode: props?.presentMode
|
|
40
|
+
presentMode: props?.presentMode ?? 1,
|
|
41
41
|
animated: props?.animated || true,
|
|
42
42
|
interactiveDismissalDisabled: props?.interactiveDismissalDisabled || false,
|
|
43
43
|
bgcolor: props?.bgcolor || $color("secondarySurface"),
|
|
@@ -22,13 +22,14 @@ const sheet_1 = require("../components/sheet");
|
|
|
22
22
|
*/
|
|
23
23
|
class PresentedPageController extends base_controller_1.BaseController {
|
|
24
24
|
constructor({ props, layout, events } = {}) {
|
|
25
|
+
var _a;
|
|
25
26
|
super({
|
|
26
27
|
props: {
|
|
27
28
|
id: props === null || props === void 0 ? void 0 : props.id
|
|
28
29
|
}, layout, events
|
|
29
30
|
});
|
|
30
31
|
this._sheet = new sheet_1.Sheet({
|
|
31
|
-
presentMode: (props === null || props === void 0 ? void 0 : props.presentMode)
|
|
32
|
+
presentMode: (_a = props === null || props === void 0 ? void 0 : props.presentMode) !== null && _a !== void 0 ? _a : 1,
|
|
32
33
|
animated: (props === null || props === void 0 ? void 0 : props.animated) || true,
|
|
33
34
|
interactiveDismissalDisabled: (props === null || props === void 0 ? void 0 : props.interactiveDismissalDisabled) || false,
|
|
34
35
|
bgcolor: (props === null || props === void 0 ? void 0 : props.bgcolor) || $color("secondarySurface"),
|