Skip to content

Commit

Permalink
Revert the fix which has been fixed on master
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Aug 3, 2018
1 parent 9ee8185 commit 43a7d6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/react-dom/src/client/ReactDOMFiberSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ export function initWrapperState(element: Element, props: Object) {

export function postMountWrapper(element: Element, props: Object) {
const node = ((element: any): SelectWithWrapperState);
//Set selected index to -1 before doing anything else to prevent first option from being selected by default
node.selectedIndex = -1;
node.multiple = !!props.multiple;
const value = props.value;
if (value != null) {
Expand Down

0 comments on commit 43a7d6d

Please sign in to comment.