rmc-picker
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -240,5 +240,10 @@ /* | ||
fireValueChange: function fireValueChange(itemValue) { | ||
if (itemValue !== this.state.selectedValue) { | ||
this.props.onValueChange(itemValue); | ||
fireValueChange: function fireValueChange(selectedValue) { | ||
if (selectedValue !== this.state.selectedValue) { | ||
if (!('selectedValue' in this.props)) { | ||
this.setState({ | ||
selectedValue: selectedValue | ||
}); | ||
} | ||
this.props.onValueChange(selectedValue); | ||
} | ||
@@ -245,0 +250,0 @@ }, |
{ | ||
"name": "rmc-picker", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "React Mobile Picker Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
27263
660