Skip to content

Commit

Permalink
Merge pull request #16 from pseudoankit/fix-showing-last-tooltip
Browse files Browse the repository at this point in the history
reset visible tooltip list before setting new one
  • Loading branch information
pseudoankit authored Dec 2, 2023
2 parents 95f3222 + f97fa19 commit 6284283
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ internal class CoachMarkScopeImpl(

private var _visibleTooltips = listOf<TooltipConfig>()
set(value) {
// resetting all values before setting new ones
field = listOf()
_visibleTooltipIndex = 0
updateVisibleItem(value, _visibleTooltipIndex)
field = value
Expand Down

0 comments on commit 6284283

Please sign in to comment.