@project-r/styleguide
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -99,2 +99,5 @@ 'use strict'; | ||
}; | ||
_this.inputRef = function (ref) { | ||
return _this.input = ref; | ||
}; | ||
return _this; | ||
@@ -110,3 +113,2 @@ } | ||
sim = _props.simulate, | ||
ref = _props.ref, | ||
label = _props.label, | ||
@@ -133,3 +135,3 @@ error = _props.error; | ||
containerStyle, | ||
_react2.default.createElement('input', _extends({ type: type, ref: ref, | ||
_react2.default.createElement('input', _extends({ type: type, ref: this.inputRef, | ||
onChange: onChange || function (event) { | ||
@@ -136,0 +138,0 @@ var v = event.target.value; |
{ | ||
"name": "@project-r/styleguide", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "glamor": "^2.20.24", |
@@ -72,5 +72,6 @@ import React, {Component} from 'react' | ||
} | ||
this.inputRef = ref => this.input = ref | ||
} | ||
render () { | ||
const {onChange, type, simulate: sim, ref, label, error} = this.props | ||
const {onChange, type, simulate: sim, label, error} = this.props | ||
@@ -96,3 +97,3 @@ let simulations = {} | ||
<label {...containerStyle}> | ||
<input type={type} ref={ref} | ||
<input type={type} ref={this.inputRef} | ||
onChange={onChange || ((event) => { | ||
@@ -99,0 +100,0 @@ const v = event.target.value |
9424694
1546