Skip to content

Commit

Permalink
Place min/max ahead of value input prop order list
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Aug 12, 2016
1 parent 27f7717 commit bce5dff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,9 @@ describe('ReactDOMInput', function() {
'set data-reactroot',
'set type',
'set step',
'set value',
'set min',
'set max',
'set value'
]);
});

Expand Down
6 changes: 4 additions & 2 deletions src/renderers/dom/shared/HTMLDOMPropertyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ var HTMLDOMPropertyConfig = {
// Make sure we set .step before .value (setting .value before .step
// means .value is rounded on mount: based upon step precision)
'step',
'value',
'checked',
// Fix bug in range inputs initial render
// https://github.com/facebook/react/issues/7170
'min',
'max',
'value',
'checked'
],
},

Expand Down

0 comments on commit bce5dff

Please sign in to comment.