JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.49k stars 4.12k forks source link

Word wrap instead of Ellipses react-select v2 #5766

Open juliGer opened 10 months ago

juliGer commented 10 months ago

Hello! i am trying to make word wrap but i am not able to do it, in the last version it works but because of the code that already exists i can't update the react-select version, does anyone by chance know how i can do it in version 2.4 to do the same as in the last version?

Version 2 image

Last Version image

Codesandbox with version 2.4 the one I have the problem with

https://codesandbox.io/s/codesandboxer-example-forked-ggrm3q?file=/example.tsx:1109-1407

SeiwonPark commented 10 months ago

@juliGer try this

singleValue: (baseStyles) => ({
  ...baseStyles,
  whiteSpace: "normal",
+  margin: "0px",
+  position: "relative",
+  WebkitTransform: "none",
+  transform: "none",
}),