muba-posting 8.0.2 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Publish6.js +3 -3
  2. package/package.json +1 -1
package/Publish6.js CHANGED
@@ -106,7 +106,7 @@ export default class Publish6 extends React.Component {
106
106
  }
107
107
 
108
108
  async validateForm() {
109
- let validate = this.refs.phoneGroup.onSubmitValidate();
109
+ let validate = this.phoneGroup.onSubmitValidate();
110
110
 
111
111
  if (validate) {
112
112
  const phones = this.props.postingAd.phonesObject.map(phone => phone.fullPhone).join(PHONE_SEPARATOR);
@@ -192,7 +192,7 @@ export default class Publish6 extends React.Component {
192
192
  returnKeyType={"next"}
193
193
  maxLength={50}
194
194
  disabled={!this.props.allowedToModify.clientRef}
195
- onSubmitEditing={(event) => { this.refs.phoneGroup.focus(); }} />
195
+ onSubmitEditing={(event) => { this.phoneGroup.focus(); }} />
196
196
  </View>
197
197
 
198
198
  <View style={this.state.requiredPhoneError ? [commonStyles.progressbarFieldContainer, commonStyles.fieldError] : commonStyles.progressbarFieldContainer} ref={(element) => this.phoneView = element}>
@@ -203,7 +203,7 @@ export default class Publish6 extends React.Component {
203
203
  </View>
204
204
 
205
205
  <PhoneGroup
206
- ref='phoneGroup'
206
+ ref={(phoneGroup) => this.phoneGroup = phoneGroup}
207
207
  inputStyle={commonStyles.input}
208
208
  phoneBoxStyle={this.state.requiredPhoneError ? commonStyles.inputPhoneBoxError : commonStyles.inputPhoneBox}
209
209
  value={this.props.postingAd.phonesObject}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "8.0.2",
3
+ "version": "8.0.4",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {