Browse Source

fix(issues): Prevent passing isVisible style prop (#76694)

Scott Cooper 6 months ago
parent
commit
b6cee82966
1 changed files with 3 additions and 1 deletions
  1. 3 1
      static/app/components/draggableTabs/draggableTabList.tsx

+ 3 - 1
static/app/components/draggableTabs/draggableTabList.tsx

@@ -209,7 +209,9 @@ DraggableTabList.Item = Item;
  * TabDividers are only visible around NON-selected tabs. They are not visible around the selected tab,
  * but they still create some space and act as a gap between tabs.
  */
-const TabDivider = styled(motion.div)<{isVisible: boolean}>`
+const TabDivider = styled(motion.div, {
+  shouldForwardProp: prop => prop !== 'isVisible',
+})<{isVisible: boolean}>`
   ${p =>
     p.isVisible &&
     `