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

The placeholder bleeds out/overflows on smaller width when selecting a long named country #179

Open
jayspirits opened this issue Apr 4, 2023 · 0 comments

Comments

@jayspirits
Copy link

I have implemented this dropdown with a limited width. but the placeholder bleeds out the text if you selected a country wider than the dropdown width. see the screenshots.

The dropdown options are good. it trims the country name "American Samoa" with ellipses at the end so it became "America..."
dropdown-options

But after selecting it, notice the text and the caret icon bleeds out/overflows the container.
with-selected

I did try to add a class on selectButtonClassname with overflow hidden and it did solve the text to overflow as it is being hidden, but the issue is it also hides the caret icon.
with-overflow-hidden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant