@energycap/components 0.39.32-ECAP-27075-confirm-bug-textbox-always-showing-even-when-not-requested.20241023-1555 → 0.39.32-ECAP-27075-confirm-bug-textbox-always-showing-even-when-not-requested.20241023-1630
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.
@@ -5184,7 +5184,6 @@ class ConfirmComponent {
|
|
5184
5184
|
onOpen(openContext) {
|
5185
5185
|
this.context = openContext;
|
5186
5186
|
this.dialogId = openContext.id;
|
5187
|
-
this.showTextBox = this.context.checkConfirm ? false : true;
|
5188
5187
|
if (this.context.alternateSaveLabel) {
|
5189
5188
|
this.context.saveOnEnter = false;
|
5190
5189
|
}
|
@@ -5240,11 +5239,17 @@ class ConfirmComponent {
|
|
5240
5239
|
});
|
5241
5240
|
}
|
5242
5241
|
setValidations() {
|
5243
|
-
|
5244
|
-
|
5242
|
+
const showCheckBox = this.formGroup.get('checkbox');
|
5243
|
+
if (showCheckBox) {
|
5244
|
+
if (this.showTextBox) {
|
5245
|
+
this.formGroup.controls['textbox']?.enable();
|
5246
|
+
}
|
5247
|
+
else {
|
5248
|
+
this.formGroup.controls['textbox']?.disable();
|
5249
|
+
}
|
5245
5250
|
}
|
5246
5251
|
else {
|
5247
|
-
this.formGroup.controls['textbox']?.
|
5252
|
+
this.formGroup.controls['textbox']?.enable();
|
5248
5253
|
}
|
5249
5254
|
}
|
5250
5255
|
/**
|