Skip to content

Commit b09eb4a

Browse files
authored
Stopped meta.name prop. Name is only on input (#36)
1 parent 119f0c7 commit b09eb4a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Field.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,14 @@ export default class Field extends React.PureComponent<Props, State> {
109109
value: _value,
110110
...rest
111111
} = this.props
112-
let { blur, change, focus, value, ...meta } = this.state.state
112+
let {
113+
blur,
114+
change,
115+
focus,
116+
value,
117+
name: ignoreName,
118+
...meta
119+
} = this.state.state
113120
if (value === undefined || (value === null && !allowNull)) {
114121
value = ''
115122
}

0 commit comments

Comments
 (0)