Skip to content

Commit

Permalink
fix: hide tab on drag
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Nov 6, 2022
1 parent e7554d5 commit f34f6e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const TabBarItemDraggable = React.forwardRef<
});

const style: React.CSSProperties = {
zIndex: isDragging ? 1 : undefined,
visibility: isDragging ? 'hidden' : 'visible',
transform: transform ? `translate3d(${transform.x}px, 0px, 0)` : undefined,
transition,
};
Expand Down
1 change: 0 additions & 1 deletion src/app/components/tabs/tab-bar/tab-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ export const TabBar: React.FC<PropsWithChildren<TabBarProps>> = ({
<ActiveBar {...activeBar} css={activeBarStyles} />
</StyledTabBar>
{rightNode && <TabBarRightNodeWrapper>{rightNode}</TabBarRightNodeWrapper>}
{/* {rightNode} */}
</TabBarWrapper>
);
};

0 comments on commit f34f6e1

Please sign in to comment.