Comparing version 0.9.7 to 0.9.9
# Change Log | ||
## [v0.9.9](https://github.com/TechnologyAdvice/stardust/tree/v0.9.9) (2016-01-25) | ||
[Full Changelog](https://github.com/TechnologyAdvice/stardust/compare/v0.9.8...v0.9.9) | ||
## [v0.9.8](https://github.com/TechnologyAdvice/stardust/tree/v0.9.8) (2016-01-25) | ||
[Full Changelog](https://github.com/TechnologyAdvice/stardust/compare/v0.9.7...v0.9.8) | ||
**Merged pull requests:** | ||
- Revert "Optimizes display performance of the Input render method" [\#152](https://github.com/TechnologyAdvice/stardust/pull/152) ([jhabdas](https://github.com/jhabdas)) | ||
## [v0.9.7](https://github.com/TechnologyAdvice/stardust/tree/v0.9.7) (2016-01-24) | ||
@@ -4,0 +14,0 @@ [Full Changelog](https://github.com/TechnologyAdvice/stardust/compare/v0.9.6...v0.9.7) |
{ | ||
"name": "stardust", | ||
"version": "0.9.7", | ||
"version": "0.9.9", | ||
"description": "Semantic UI components for React.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -13,3 +13,2 @@ import _ from 'lodash'; | ||
ref: PropTypes.string, | ||
value: PropTypes.string, | ||
}; | ||
@@ -21,15 +20,2 @@ | ||
constructor(props) { | ||
super(props); | ||
this.componentWillReceiveProps = this.componentWillReceiveProps.bind(this); | ||
this.onChange = this.onChange.bind(this); | ||
this.state = {value: props.value}; | ||
} | ||
componentWillReceiveProps(nextProps) { | ||
if (nextProps.value !== this.state.value) { | ||
this.setState({value: nextProps.value}); | ||
} | ||
} | ||
static _meta = { | ||
@@ -41,6 +27,2 @@ library: META.library.semanticUI, | ||
onChange(e) { | ||
this.setState({value: e.target.value}); | ||
} | ||
render() { | ||
@@ -86,6 +68,3 @@ // TODO: replace with <Icon /> once it is merged | ||
); | ||
const newProps = { | ||
...getUnhandledProps(this), | ||
value: this.state.value, | ||
}; | ||
const props = getUnhandledProps(this); | ||
@@ -96,3 +75,3 @@ return ( | ||
{isLeftAction && actionChildren} | ||
<input {...newProps} /> | ||
<input {...props} /> | ||
{this.props.icon && icon} | ||
@@ -99,0 +78,0 @@ {isRightLabeled && labelChildren} |
81496
1983