You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In react 16 when creating a <select size="3"> (size > 1) the first child is automatically getting marked as selected. In React 16 there does not seem to be a way to specify no gets selected by default
Do you want to request a feature or report a bug?
Bug - regression
What is the current behavior?
In react 16 when creating a
<select size="3">
(size > 1) the first child is automatically getting marked as selected. In React 16 there does not seem to be a way to specify no gets selected by defaulthttps://codesandbox.io/s/m76ozkwm89
What is the expected behavior?
In React 15 unless you marked an option to be selected no options were selected by default.
https://codesandbox.io/s/6894m3k9w
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Reproducible in Chrome 72 and Firefox 59.
Note: this is almost a duplicate of #12200. In fact, I copied issue text and codesandbox examples, just changing
multiple
tosize="3"
.The text was updated successfully, but these errors were encountered: