Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: blocking action sheet has no overlay

thecodrr2246683cccd6
diff --git a/packages/editor/dist/components/actionsheet/index.js b/packages/editor/dist/components/actionsheet/index.js
index 0cacd5d7d..a8522dfea 100644
--- a/packages/editor/dist/components/actionsheet/index.js
+++ b/packages/editor/dist/components/actionsheet/index.js
@@ -93,7 +93,7 @@ export function ActionSheetPresenter(props) {
}, overlayElement: function (props, contentEl) {
return (_jsxs(Box, __assign({}, props, {
//@ts-ignore
- style: __assign(__assign({}, props.style), { position: "sticky", zIndex: 1000, backgroundColor: !blocking ? "transparent" : "unset" }), tabIndex: -1 }, { children: [blocking && (_jsx(motion.div, { style: {
+ style: __assign(__assign({}, props.style), { position: blocking ? "fixed" : "sticky", zIndex: 1000, backgroundColor: !blocking ? "transparent" : "unset" }), tabIndex: -1 }, { children: [blocking && (_jsx(motion.div, { id: "action-sheet-overlay", style: {
height: "100%",
width: "100%",
opacity: opacity,
diff --git a/packages/editor/src/components/action-sheet/index.tsx b/packages/editor/src/components/action-sheet/index.tsx
index a45de771b..5a78a5ed4 100644
--- a/packages/editor/src/components/action-sheet/index.tsx
+++ b/packages/editor/src/components/action-sheet/index.tsx
@@ -127,7 +127,7 @@ export function ActionSheetPresenter(
//@ts-ignore
style={{
...props.style,
- position: "sticky",
+ position: blocking ? "fixed" : "sticky",
zIndex: 1000,
backgroundColor: !blocking ? "transparent" : "unset",
}}
@@ -135,6 +135,7 @@ export function ActionSheetPresenter(
>
{blocking && (
<motion.div
+ id="action-sheet-overlay"
style={{
height: "100%",
width: "100%",