@@ -121,8 +125,8 @@ export const ActionSheet = ({
timeout={timeout}
{...dropdownProps}
onClose={onClose}
- className={isDesktop ? className : undefined}
- style={isDesktop ? style : undefined}
+ className={mode === 'menu' ? className : undefined}
+ style={mode === 'menu' ? style : undefined}
>
{(header || text) && (
@@ -137,7 +141,7 @@ export const ActionSheet = ({
)}
{children}
- {platform === Platform.IOS && !isDesktop && (
+ {platform === Platform.IOS && mode === 'sheet' && (
@@ -146,7 +150,7 @@ export const ActionSheet = ({
);
- if (isDesktop) {
+ if (mode === 'menu') {
return actionSheet;
}
diff --git a/packages/vkui/src/components/ActionSheet/ActionSheetContext.ts b/packages/vkui/src/components/ActionSheet/ActionSheetContext.ts
index 7069edd602..dcd59c8eee 100644
--- a/packages/vkui/src/components/ActionSheet/ActionSheetContext.ts
+++ b/packages/vkui/src/components/ActionSheet/ActionSheetContext.ts
@@ -11,7 +11,7 @@ export type ItemClickHandler