-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dropdown selection auto select first option #811
Comments
Confirmed bug, thanks. There is a hidden I believe the fix is as simple as adding an always present |
I found these lines in Dropdown source
|
This is a little confusing at first, but in Semantic-UI So, there is no default |
I still see this bug in the latest 0.61.3 version |
@levithomason Any advice on how to resolve this with the http://jsfiddle.net/designosis/2mw588nf/1/ Adding a blank |
@neokio probably a little late with the response but... just set This will stop the Dropdown from auto selecting when you click away e.g.
|
@Jay-Grant adding selectOnBlur to http://jsfiddle.net/designosis/2mw588nf/1/ ... either in the tag or as a |
@neokio $('.ui.dropdown').dropdown({forceSelection: false}); |
@neokio @mexiQQ This repo is for the React port of Semantic UI. There is no jQuery and therefore no See https://react.semantic-ui.com/modules/dropdown for a list of valid props you can pass. If you wish to file a bug or use a playground, you must fork http://codepen.io/levithomason/pen/ZpBaJX which is the React implementation. The jsfiddle linked above does not support Semantic UI React. |
In Semantic-UI-React Dropdown we need a property which will prevent dropdown to autoselect some option on dropdown open. In my case, dropdown somehow remembers previous state and selected !== active when opened again. While we have full control over active item by means of "value" prop, it would be nice to have a prop to control selected option as well. |
Is it intended behavior and how to disable this?
Steps
Expected Result
gender is null
Actual Result
gender dropdown automatically select first value
Version
0.59.2
Testcase
http://react.semantic-ui.com/collections/form#onsubmit
The text was updated successfully, but these errors were encountered: