Include a ref so that get/set value works again
parent
aa7afe819f
commit
875c0f94d3
|
@ -54,6 +54,7 @@ export default class Field extends React.PureComponent {
|
||||||
|
|
||||||
// Set some defaults for the element
|
// Set some defaults for the element
|
||||||
extraProps.type = extraProps.type || "text";
|
extraProps.type = extraProps.type || "text";
|
||||||
|
extraProps.ref = "fieldInput";
|
||||||
|
|
||||||
const element = this.props.element || "input";
|
const element = this.props.element || "input";
|
||||||
const fieldInput = React.createElement(element, extraProps, this.props.children);
|
const fieldInput = React.createElement(element, extraProps, this.props.children);
|
||||||
|
|
Loading…
Reference in New Issue