Skip to content

Commit

Permalink
fix: do not allow drag in profile edit bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Jan 20, 2025
1 parent 1b11299 commit b55a75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/features/EditInfo/ProfileEditBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {

export const ProfileEditBottomSheet = ({ type, stepMeta, onClose, onCompleteEdit }: Props) => {
return (
<BottomSheet isOpen={Boolean(stepMeta)} onClose={onClose}>
<BottomSheet isOpen={Boolean(stepMeta)} onClose={onClose} disableDrag>
<BottomSheet.Header onPrev={onClose} onClose={onClose} />
<BottomSheet.Content>
{stepMeta && <ProfileEditBody type={type} stepMeta={stepMeta} onCompleteEdit={onCompleteEdit} />}
Expand Down
2 changes: 1 addition & 1 deletion src/processes/shortcut/Shortcut.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const Shortcut = ({ right, bottom }: { right: `${number}px`; bottom: `${n
<button className={styles.FloatingButton} onClick={() => setOpen(true)} style={floatingButtonPosition.current}>
<List />
</button>
<BottomSheet detent={'full-height'} isOpen={open} onClose={onClose}>
<BottomSheet detent={'full-height'} disableDrag isOpen={open} onClose={onClose}>
<BottomSheet.Header onPrev={selectedKey ? () => setSelectedKey(null) : undefined} onClose={onClose} />
<BottomSheet.Content className={styles.Content}>
{selectedKey === null && (
Expand Down

0 comments on commit b55a75c

Please sign in to comment.