Skip to content

Commit

Permalink
There is no need to assign a different checked behavior in Fire
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Sep 12, 2018
1 parent f2646d1 commit 14dab53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/react-dom/src/client/ReactDOMInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ function isControlled(props) {

export function getHostProps(element: Element, props: Object) {
const node = ((element: any): InputWithWrapperState);
const checked =
props.checked != null ? props.checked : node._wrapperState.initialChecked;
const checked = props.checked;

const hostProps = Object.assign({}, props, {
defaultChecked: undefined,
defaultValue: undefined,
value: undefined,
checked: disableInputAttributeSyncing ? undefined : checked,
checked: props.checked != null ? props.checked : node._wrapperState.initialChecked
});

return hostProps;
Expand Down

0 comments on commit 14dab53

Please sign in to comment.