diff --git a/src/extras/geocoder.js b/src/extras/geocoder.js
index 8640f54..e137d4b 100644
--- a/src/extras/geocoder.js
+++ b/src/extras/geocoder.js
@@ -156,7 +156,7 @@ class GeocoderFieldComponent extends FieldType {
onChange={this.onChange.bind(this)}
onBlur={() => this.props.onChange(this.state.value)}
componentClass={'input'}
- {...this.passProps}
+ {...this.props.passProps}
/>
{this.props.errorMessage &&
{this.props.errorMessage}
@@ -167,7 +167,7 @@ class GeocoderFieldComponent extends FieldType {
query={{
v: `3`,
libraries: 'geometry,drawing,places',
- key: this.passProps.apiKey
+ key: this.props.passProps.apiKey
}}
loadingElement={
diff --git a/src/fields/autocomplete.js b/src/fields/autocomplete.js
index 3797a58..99f501e 100644
--- a/src/fields/autocomplete.js
+++ b/src/fields/autocomplete.js
@@ -23,7 +23,7 @@ class AutocompleteFieldComponent extends React.Component {
super(props);
this.state = {
value: props.value,
- multi: (this.passProps && this.passProps.multi) || false
+ multi: (props.passProps && props.passProps.multi) || false
};
}
@@ -58,7 +58,7 @@ class AutocompleteFieldComponent extends React.Component {
onBlur={() => this.props.onChange(this.state.value)}
disabled={this.props.disabled}
placeholder={this.props.placeholder || this.props.passProps.placeholder}
- {...this.passProps}
+ {...this.props.passProps}
/>
{this.props.errorMessage &&
{this.props.errorMessage}
diff --git a/src/fields/datetime.js b/src/fields/datetime.js
index 5ee65d4..cadd2b4 100644
--- a/src/fields/datetime.js
+++ b/src/fields/datetime.js
@@ -46,7 +46,7 @@ class DateTimeFieldComponent extends React.Component {
inputProps={{
placeholder: this.props.placeholder || this.props.passProps.placeholder
}}
- {...this.passProps}
+ {...this.props.passProps}
/>
{this.props.errorMessage &&
{this.props.errorMessage}
diff --git a/src/fields/select.js b/src/fields/select.js
index b2c1dbf..5149747 100644
--- a/src/fields/select.js
+++ b/src/fields/select.js
@@ -74,7 +74,7 @@ class SelectFieldComponent extends React.Component {
onChange={this.onChange.bind(this)}
onBlur={() => this.props.onChange(this.state.value)}
componentClass="select"
- {...this.passProps}
+ {...this.props.passProps}
>
{this.renderItems()}
diff --git a/src/fields/string.js b/src/fields/string.js
index 6508dd4..5848024 100644
--- a/src/fields/string.js
+++ b/src/fields/string.js
@@ -37,7 +37,7 @@ export default class TextFieldComponent extends React.Component {
}
render() {
- var fieldType = this.props.fieldType || this.type;
+ const fieldType = this.props.fieldType || this.type;
return (
this.props.onChange(this.state.value)}
componentClass={fieldType === 'textarea' ? 'textarea' : 'input'}
- {...this.passProps}
+ {...this.props.passProps}
/>
{this.props.errorMessage &&
{this.props.errorMessage}
diff --git a/src/fields/tags.js b/src/fields/tags.js
index 9ab6eea..2d2fcf9 100644
--- a/src/fields/tags.js
+++ b/src/fields/tags.js
@@ -35,7 +35,7 @@ class TagsFieldComponent extends React.Component {
ref='input'
value={this.state.value}
onChange={this.onChange.bind(this)}
- {...this.passProps}
+ {...this.props.passProps}
/>
{this.props.errorMessage &&
{this.props.errorMessage}