muba-posting 8.0.2 → 8.0.3
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.
- package/Publish6.js +5 -3
- package/package.json +1 -1
package/Publish6.js
CHANGED
|
@@ -23,6 +23,8 @@ export default class Publish6 extends React.Component {
|
|
|
23
23
|
|
|
24
24
|
this.languageItem = [];
|
|
25
25
|
|
|
26
|
+
this.phoneGroup = React.createRef();
|
|
27
|
+
|
|
26
28
|
this.state = {
|
|
27
29
|
hideSave: false,
|
|
28
30
|
requiredPhoneError: false,
|
|
@@ -106,7 +108,7 @@ export default class Publish6 extends React.Component {
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
async validateForm() {
|
|
109
|
-
let validate = this.
|
|
111
|
+
let validate = this.phoneGroup.onSubmitValidate();
|
|
110
112
|
|
|
111
113
|
if (validate) {
|
|
112
114
|
const phones = this.props.postingAd.phonesObject.map(phone => phone.fullPhone).join(PHONE_SEPARATOR);
|
|
@@ -192,7 +194,7 @@ export default class Publish6 extends React.Component {
|
|
|
192
194
|
returnKeyType={"next"}
|
|
193
195
|
maxLength={50}
|
|
194
196
|
disabled={!this.props.allowedToModify.clientRef}
|
|
195
|
-
onSubmitEditing={(event) => { this.
|
|
197
|
+
onSubmitEditing={(event) => { this.phoneGroup.focus(); }} />
|
|
196
198
|
</View>
|
|
197
199
|
|
|
198
200
|
<View style={this.state.requiredPhoneError ? [commonStyles.progressbarFieldContainer, commonStyles.fieldError] : commonStyles.progressbarFieldContainer} ref={(element) => this.phoneView = element}>
|
|
@@ -203,7 +205,7 @@ export default class Publish6 extends React.Component {
|
|
|
203
205
|
</View>
|
|
204
206
|
|
|
205
207
|
<PhoneGroup
|
|
206
|
-
ref=
|
|
208
|
+
ref={this.phoneGroup}
|
|
207
209
|
inputStyle={commonStyles.input}
|
|
208
210
|
phoneBoxStyle={this.state.requiredPhoneError ? commonStyles.inputPhoneBoxError : commonStyles.inputPhoneBox}
|
|
209
211
|
value={this.props.postingAd.phonesObject}
|