datasync-dynamic-form 1.2.0 → 1.2.1
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/dist/DsDynamicForm.js +3 -2
- package/package.json +1 -1
package/dist/DsDynamicForm.js
CHANGED
|
@@ -441,7 +441,7 @@ export class DsDynamicForm extends Component {
|
|
|
441
441
|
case "captcha":
|
|
442
442
|
return this._captcha_field(field);
|
|
443
443
|
default:
|
|
444
|
-
console.error(
|
|
444
|
+
console.error(`${field.input_type.toLowerCase()} type is incorrect !!!`);
|
|
445
445
|
return (_jsx(_Fragment, {}));
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -503,8 +503,9 @@ export class DsDynamicForm extends Component {
|
|
|
503
503
|
this.clearForm();
|
|
504
504
|
}
|
|
505
505
|
if (this.props.active_page != prevProps.active_page) {
|
|
506
|
+
console.log("active_page has changed !");
|
|
506
507
|
try {
|
|
507
|
-
this.updatePageDomElement(
|
|
508
|
+
this.updatePageDomElement(prevProps.active_page, false);
|
|
508
509
|
}
|
|
509
510
|
catch (error) {
|
|
510
511
|
this.updatePageDomElement(0, false);
|
package/package.json
CHANGED