@decaf-ts/for-angular 0.1.44 → 0.1.45
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.
|
@@ -1068,9 +1068,10 @@ class ValidatorFactory {
|
|
|
1068
1068
|
*/
|
|
1069
1069
|
static getFieldType(type, customTypes, options, subType) {
|
|
1070
1070
|
const fieldType = (customTypes || subType || type);
|
|
1071
|
-
if (
|
|
1072
|
-
typeof options === 'function') {
|
|
1073
|
-
|
|
1071
|
+
if (fieldType === HTML5InputTypes.CHECKBOX || fieldType === Array.name) {
|
|
1072
|
+
if (Array.isArray(options) || typeof options === 'function') {
|
|
1073
|
+
return Primitives.STRING;
|
|
1074
|
+
}
|
|
1074
1075
|
}
|
|
1075
1076
|
return fieldType;
|
|
1076
1077
|
}
|
|
@@ -7962,7 +7963,7 @@ let CrudFieldComponent = class CrudFieldComponent extends NgxFormFieldDirective
|
|
|
7962
7963
|
await loading.present();
|
|
7963
7964
|
const modal = await getNgxSelectOptionsModal(this.label, this.options, this.name);
|
|
7964
7965
|
// this.changeDetectorRef.detectChanges();
|
|
7965
|
-
loading.
|
|
7966
|
+
await loading.dismiss();
|
|
7966
7967
|
const { data, role } = await modal.onWillDismiss();
|
|
7967
7968
|
if (role === ActionRoles.confirm && data !== this.value) {
|
|
7968
7969
|
this.setValue(data);
|