Moved tests from ContextHelpDirective to ContextHelpWrapperComponent and added more tests

This commit is contained in:
Koen Pauwels
2023-01-09 17:15:07 +01:00
parent 365b0208d9
commit cad4f74173
4 changed files with 129 additions and 71 deletions

View File

@@ -81,6 +81,7 @@ export class ContextHelpWrapperComponent implements OnInit, OnDestroy {
this.contextHelpService.getContextHelp$(this.id)
.pipe(hasValueOperator())
.subscribe((ch: ContextHelp) => {
if (ch.isTooltipVisible && !this.tooltip.isOpen()) {
this.tooltip.open();
} else if (!ch.isTooltipVisible && this.tooltip.isOpen()) {