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

Select component not displaying options as expected. #3471

Closed
ryannealmes opened this issue Oct 18, 2016 · 3 comments
Closed

Select component not displaying options as expected. #3471

ryannealmes opened this issue Oct 18, 2016 · 3 comments

Comments

@ryannealmes
Copy link

I have just started using your awesome framework and had a question aroung the select component. I have a case where the text in the options is longer than the width of the drop down. This results in strange behavior. Please see the screenshots and codepen below

Codepen for antd implementation
Codepen default html implementation

If you compare the two selects you can see I have added an option with text that is greater than the width of the select. I would have expected the full text to be visible when the options are displayed. I can't see anything in the documentation around enabling this. There is also a strange piece of behaviour that displays the full text of the currently selected item when changing the select option.

Is the component intended to work this way?

Thanks.

@benjycui
Copy link
Contributor

https://ant.design/components/select/#Select-props

dropdownMatchSelectWidth={false}

Please read documentation & FAQ and search issues before open an issue, THX!

It will be better if you read smart questions(提问的智慧).

@ryannealmes
Copy link
Author

Did all of the suggestions before posting an issue. I am not here to waste your or my time. Next time I will spend more time reading the documentation more carefully. Apologies!

@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants