Skip to content
Snippets Groups Projects
Commit 48e9487e authored by Jure's avatar Jure
Browse files

Merge branch 'textfield-inner-ref' into 'master'

feat(ui): add inner ref prop to textfield

See merge request pubsweet/pubsweet!331
parents 40eaf6b7 b31b4aa5
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ class TextField extends React.Component {
}
render() {
const {
innerRefProp,
className,
label,
type = 'text',
......@@ -65,6 +66,7 @@ class TextField extends React.Component {
{label && <Label htmlFor={this.inputId}>{label}</Label>}
<Input
id={this.inputId}
innerRef={innerRefProp}
readOnly={readonly}
type={type}
value={value}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment