Skip to content

Commit 26a909b

Browse files
committed
Make the id increment count part of the id generation
1 parent 0e6a753 commit 26a909b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/dialog/tooltip/tooltip-definition.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Component, Input, HostBinding } from "@angular/core";
2222
export class TooltipDefinition {
2323
static tooltipItemCount = 0;
2424

25-
@Input() id = `definition-tooltip-${TooltipDefinition.tooltipItemCount}`;
25+
@Input() id = `definition-tooltip-${TooltipDefinition.tooltipItemCount++}`;
2626
/**
2727
* Body content for the `TooltipDefinition`.
2828
*/
@@ -34,8 +34,4 @@ export class TooltipDefinition {
3434
@Input() placement: "bottom" | "top" = "bottom";
3535

3636
@HostBinding("class.bx--tooltip--definition") className = true;
37-
38-
constructor() {
39-
TooltipDefinition.tooltipItemCount++;
40-
}
4137
}

0 commit comments

Comments
 (0)