aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/formControls
diff options
context:
space:
mode:
authorYoav Schneiderman <yoav.schneiderman@intl.att.com>2020-02-11 18:55:36 +0200
committerIttay Stern <ittay.stern@att.com>2020-02-11 17:25:36 +0000
commit947262d4f624ef0a8a9e933fbb5c2636f26f837e (patch)
tree22f7154a6ac46887687b43003bff239eab07bf72 /vid-webpack-master/src/app/shared/components/formControls
parent7bc81973c823789debc000858f7777d120709ac4 (diff)
Checkbox component will handle correctly when no extraContents
Issue-ID: VID-772 Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com> Change-Id: I93c2bb924588db139685f09a75d62b7bb0dcb68d
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/formControls')
-rwxr-xr-xvid-webpack-master/src/app/shared/components/formControls/component/checkbox/checkbox.formControl.component.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-webpack-master/src/app/shared/components/formControls/component/checkbox/checkbox.formControl.component.html b/vid-webpack-master/src/app/shared/components/formControls/component/checkbox/checkbox.formControl.component.html
index d68d21d99..2841f5c10 100755
--- a/vid-webpack-master/src/app/shared/components/formControls/component/checkbox/checkbox.formControl.component.html
+++ b/vid-webpack-master/src/app/shared/components/formControls/component/checkbox/checkbox.formControl.component.html
@@ -6,7 +6,7 @@
name="{{data?.controlName}}"
[formControl]="form?.controls[data?.controlName]"
data-toggle="toggle">
- <label class="checkbox-label" [ngStyle]="{'float' : data.extraContents.length > 0 ? 'left' : 'none'}"
+ <label class="checkbox-label" [ngStyle]="{'float' : data.extraContents && data.extraContents.length > 0 ? 'left' : 'none'}"
for="{{data?.dataTestId}}">{{data?.displayName}}</label>
<div *ngFor="let extraContent of data?.extraContents" class="form-conrtols">
<div [ngSwitch]="extraContent.type">