Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Set select ValueContainer width to 0
Browse files Browse the repository at this point in the history
Let flexbox handle the rest

This fixes an issue that on firefox the select grows larger than allowed when a long option is selected
  • Loading branch information
lorgan3 committed Aug 22, 2023
1 parent b1a35b2 commit be99a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ function Select<Option extends OptionType, IsMulti extends boolean, IsClearable
minHeight: minHeightBySizeMap[size] - 2,
lineHeight: 'normal',
padding: isMulti && hasValue && size !== 'large' ? 0 : '0 4px',
width: '0',
};
};

Expand Down

0 comments on commit be99a0f

Please sign in to comment.