Skip to content

Commit

Permalink
Fix for InputBase taking name as value (#90) (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wunsz authored and cliedeman committed Aug 21, 2019
1 parent f4f55d0 commit 4609fb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/InputBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const fieldToInputBase = ({
disabled: disabled != undefined ? disabled : isSubmitting,
...props,
...field,
value: field.name,
};
};

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/InputBase.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`InputBase Renders Correctly 1`] = `
onChange={[Function]}
onFocus={[Function]}
type="text"
value="test"
value="Input"
/>
</div>
</form>
Expand Down

0 comments on commit 4609fb2

Please # to comment.