Skip to content

Commit

Permalink
Merge pull request #1492 from gluestack/fix/actionsheet-dragindicatot
Browse files Browse the repository at this point in the history
Fix/actionsheet drag indicator
  • Loading branch information
surajahmed authored Dec 13, 2023
2 parents bc9ee40 + 2f04f5b commit ceb0c02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ function ActionsheetDragIndicator<T>(
return forwardRef(
({ children, ...props }: T & { children?: any }, ref?: any) => {
return (
<StyledActionsheetDragIndicator ref={ref} {...(props as T)}>
<StyledActionsheetDragIndicator
ref={ref}
{...(props as T)}
focusable={false}
>
{children}
</StyledActionsheetDragIndicator>
);
Expand Down
4 changes: 2 additions & 2 deletions packages/unstyled/actionsheet/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ActionsheetItem } from './ActionsheetItem';
import ActionsheetBackdrop from './ActionsheetBackdrop';
import { ActionsheetDragIndicatorWrapper } from './ActionsheetDragIndicatorWrapper';
import type { IActionsheetComponentType } from './types';
import ActionsheetDragIndicator from './ActionsheetDragIndicator';
// import { ActionsheetItemText } from './ActionsheetItemText';
// import ActionsheetDragIndicator from './ActionsheetDragIndicator';
// import { ActionsheetScrollView } from './ActionsheetScrollView';
// import { ActionsheetVirtualizedList } from './ActionsheetVirtualizedList';

Expand Down Expand Up @@ -63,7 +63,7 @@ export function createActionsheet<
const Actionsheet = ActionsheetMain(Root) as any;
Actionsheet.Backdrop = ActionsheetBackdrop(Backdrop, AnimatePresence);
Actionsheet.Content = ActionsheetContent(Content, AnimatePresence);
Actionsheet.DragIndicator = DragIndicator;
Actionsheet.DragIndicator = ActionsheetDragIndicator(DragIndicator);
Actionsheet.DragIndicatorWrapper =
ActionsheetDragIndicatorWrapper(IndicatorWrapper);
Actionsheet.Item = ActionsheetItem(Item);
Expand Down

0 comments on commit ceb0c02

Please sign in to comment.