-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Edit child] The 'ЗБЕРЕГТИ' button stays enabled when mandatory 'По-батькові' field is empty #962 #974
[Edit child] The 'ЗБЕРЕГТИ' button stays enabled when mandatory 'По-батькові' field is empty #962 #974
Changes from 2 commits
9fe0d98
9021b96
cdd3532
e3eda1b
725c29d
e94c757
d5e9a1c
8831f2f
1992648
ee16afb
2a400e4
396566b
cf09943
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ export class CreateChildComponent extends CreateFormComponent implements OnInit, | |
this.ChildrenFormArray.valueChanges.pipe( | ||
takeUntil(this.destroy$), | ||
).subscribe((val: boolean) => { | ||
this.isEmpty = !Boolean(val[0].lastName) || !Boolean(val[0].firstName); | ||
this.isEmpty = !!!(val[0].lastName) || !!!(val[0].firstName) || !!!(val[0].middleName); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !val[0].lastName There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong typo? Why val is boolean but has lastName, firstName? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you should simplify is to !(val[0].lastName || val[0].firstName || val[0].middleName) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you) Fixed it. |
||
}); | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change please typo