Skip to content

Commit

Permalink
chore(demo): TuiLegendItem change activeItemIndex when unhover lege…
Browse files Browse the repository at this point in the history
…nd item (#10319)
  • Loading branch information
TheKenkei authored Feb 6, 2025
1 parent 3b1462b commit 716e77c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export default class Example {
}

protected onHover(index: number, hovered: boolean): void {
this.activeItemIndex = hovered ? index : 0;
this.activeItemIndex = hovered ? index : NaN;
}
}

0 comments on commit 716e77c

Please sign in to comment.