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 committed Oct 17, 2022
1 parent 0d4d17a commit 00238f1
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 00238f1

Please sign in to comment.