Skip to content

Commit

Permalink
Fix animated multi-select width bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebennett88 authored and Rall3n committed Oct 19, 2022
1 parent 50393a5 commit 77a0ea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-clocks-trade.md
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Fix bug with animated multi-value select width being too wide
2 changes: 1 addition & 1 deletion packages/react-select/src/animated/ValueContainer.tsx
Expand Up @@ -87,7 +87,7 @@ const useIsMultiValueContainer = ({
...innerProps,
style: {
...innerProps?.style,
display: cssDisplayFlex ? 'flex' : 'grid',
display: (isMulti && hasValue) || cssDisplayFlex ? 'flex' : 'grid',
},
};

Expand Down

0 comments on commit 77a0ea6

Please sign in to comment.