Skip to content

Commit

Permalink
fix(tooltip): fix containerClass when isOpen is true (valor-software#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tarusin authored and YuriiKrvc committed Sep 18, 2018
1 parent 29d9656 commit 99cd053
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/rating/rating.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ export class RatingComponent implements ControlValueAccessor, OnInit {

ngOnInit(): void {
this.max = typeof this.max !== 'undefined' ? this.max : 5;

this.titles =
typeof this.titles !== 'undefined' && this.titles.length > 0
? this.titles
: ['one', 'two', 'three', 'four', 'five'];
: [];
this.range = this.buildTemplateObjects(this.max);
}

Expand Down
9 changes: 4 additions & 5 deletions src/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export class TooltipDirective implements OnInit, OnDestroy {
* Currently only supports "body".
*/
@Input() container: string;

/**
* Css class for tooltip container
*/
@Input() containerClass = '';
/**
* Returns whether or not the tooltip is currently being shown
*/
Expand All @@ -70,10 +73,6 @@ export class TooltipDirective implements OnInit, OnDestroy {
*/
@Input() isDisabled: boolean;

/**
* Css class for tooltip container
*/
@Input() containerClass = '';
/**
* Delay before showing the tooltip
*/
Expand Down

0 comments on commit 99cd053

Please sign in to comment.