Comparing version 0.2.19 to 0.2.20
@@ -75,5 +75,3 @@ // # pretty-select-value component | ||
{ className: cx(this.props.classes), | ||
onChange: this.onChange, | ||
onFocus: this.onFocusAction, | ||
onBlur: this.onBlurAction }, | ||
onChange: this.onChange }, | ||
React.createElement( | ||
@@ -94,8 +92,14 @@ 'div', | ||
return React.createElement('input', { ref: 'customInput', type: 'text', value: this.props.field.value, | ||
onChange: this.onInputChange, onFocus: this.onFocusAction, onBlur: this.onBlurAction }); | ||
onChange: this.onInputChange, onFocus: this.onFocusAction, onBlur: this.onBlur }); | ||
} | ||
return React.createElement('input', { type: 'text', value: this.getDisplayValue(), readOnly: true }); | ||
return React.createElement('input', { type: 'text', value: this.getDisplayValue(), readOnly: true, onFocus: this.onFocusAction, onBlur: this.onBlur }); | ||
}, | ||
onBlur: function onBlur() { | ||
if (!this.state.isChoicesOpen) { | ||
this.onBlurAction(); | ||
} | ||
}, | ||
getCloseIgnoreNodes: function getCloseIgnoreNodes() { | ||
@@ -121,2 +125,3 @@ return this.refs.toggle.getDOMNode(); | ||
this.props.onChange(value); | ||
this.onBlurAction(); | ||
}, | ||
@@ -126,2 +131,3 @@ | ||
if (this.state.isChoicesOpen) { | ||
this.onBlurAction(); | ||
this.setChoicesOpen(false); | ||
@@ -128,0 +134,0 @@ } |
{ | ||
"name": "formatic", | ||
"version": "0.2.19", | ||
"version": "0.2.20", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/formatic", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
741168
10044