I'm currently grappling with finding a solution to have a react-select V2 component, configured as isMulti
, hide selected values that exceed the width of the ValueContainer
rather than breaking to a new line and expanding the component's height.
My attempts to achieve this by applying the following style to the valueContainer
have been unsuccessful:
valueContainer: base => ({
...base,
overflowX: "hidden"
})
You can check out an example demonstrating the current undesirable behavior (my intention is for the 3rd value to be partially hidden or truncated on the same line as the other 2 values instead of appearing on a new line).
Do you have any suggestions?