mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
editor: fix action sheets not opening
This commit is contained in:
committed by
Ammar Ahmed
parent
3558d3db93
commit
5c386148a4
@@ -158,7 +158,7 @@ export function ActionSheetPresenter(
|
||||
onRequestClose={() => onBeforeClose()}
|
||||
portalClassName={"bottom-sheet-presenter-portal"}
|
||||
onAfterOpen={() => {
|
||||
animation.start({ transition: TRANSITION, y: 0 });
|
||||
setTimeout(() => animation.start({ transition: TRANSITION, y: 0 }));
|
||||
}}
|
||||
overlayElement={(overlayElementProps, contentEl) => {
|
||||
return (
|
||||
@@ -250,7 +250,9 @@ export function ActionSheetPresenter(
|
||||
if (y.get() >= closingHeight) {
|
||||
onBeforeClose();
|
||||
} else {
|
||||
animation.start({ transition: TRANSITION, y: 0 });
|
||||
setTimeout(() =>
|
||||
animation.start({ transition: TRANSITION, y: 0 })
|
||||
);
|
||||
}
|
||||
}}
|
||||
dragConstraints={{ top: 0, bottom: 0 }}
|
||||
|
||||
Reference in New Issue
Block a user