Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultValue text gets truncated with elipsis (...) at the end #5923

Open
AxRRep opened this issue Jun 18, 2024 · 1 comment
Open

defaultValue text gets truncated with elipsis (...) at the end #5923

AxRRep opened this issue Jun 18, 2024 · 1 comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@AxRRep
Copy link

AxRRep commented Jun 18, 2024

Is there any way to prevent defaultValue getting shortened? It seems like there is no such setting.

image

@AxRRep AxRRep added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Jun 18, 2024
@UsaidAqeel
Copy link

Hi @AxRRep

You would need to override the styles for the MultiValueLabel and remove the current text-overflow: ellipsis; and white-space: nowrap; styles that are applied by default.

const selectStyle = {
  multiValueLabel: (styles) => ({
    ...styles,
    whiteSpace: 'normal',
    textOverflow: 'clip',
  }),
}

<ReactSelect 
  ...
  styles={selectStyle}
/>

image

Looking forward to your feedback or suggestions on how to resolve this. If more information is needed or if there are any updates on this issue, please let me know. Thank you! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

2 participants