@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-1632
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,13 @@ class ConfirmComponent {
|
|
5240
5239
|
});
|
5241
5240
|
}
|
5242
5241
|
setValidations() {
|
5243
|
-
|
5244
|
-
|
5242
|
+
const showCheckBox = this.formGroup.get('checkbox');
|
5243
|
+
const textBoxControl = this.formGroup.controls['textbox'];
|
5244
|
+
if (showCheckBox) {
|
5245
|
+
this.showTextBox ? textBoxControl?.enable() : textBoxControl?.disable();
|
5245
5246
|
}
|
5246
5247
|
else {
|
5247
|
-
|
5248
|
+
textBoxControl?.enable();
|
5248
5249
|
}
|
5249
5250
|
}
|
5250
5251
|
/**
|