Skip to content

fix: await updateComplete before hiding icon so unlocked_icon renders first - #192

Closed
iantrich wants to merge 1 commit into
betafrom
claude/issue-183-20260515-0342
Closed

fix: await updateComplete before hiding icon so unlocked_icon renders first#192
iantrich wants to merge 1 commit into
betafrom
claude/issue-183-20260515-0342

Conversation

@iantrich

Copy link
Copy Markdown
Owner

Fixes #183

When _unlocked is set to true, Lit schedules an async re-render to show the unlocked_icon. Previously, icon-hidden was added synchronously before that re-render could complete, so the unlocked_icon was always hidden before it ever appeared. Awaiting updateComplete ensures the re-render runs first, making the unlocked_icon briefly visible before fading out.

Generated with Claude Code

… first

When _unlocked is set to true, Lit schedules an async re-render to show
the unlocked_icon. Previously, icon-hidden was added synchronously before
that re-render could complete, so the unlocked_icon was always hidden
before it ever appeared. Awaiting updateComplete ensures the re-render
runs first, making the unlocked_icon briefly visible before fading out.

Fixes #183

Co-authored-by: Ian Richardson <iantrich@users.noreply.github.com>
@iantrich iantrich self-assigned this May 15, 2026
@iantrich iantrich linked an issue May 15, 2026 that may be closed by this pull request
2 tasks
@iantrich
iantrich requested a review from ildar170975 May 15, 2026 03:50

@ildar170975 ildar170975 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! Thank you!

@iantrich
iantrich changed the base branch from master to beta June 9, 2026 02:46
@iantrich

iantrich commented Jun 9, 2026

Copy link
Copy Markdown
Owner Author

This fix Claude came up with looks to be against the master branch. Bad Claude :)

@iantrich iantrich closed this Jun 9, 2026
@iantrich
iantrich deleted the claude/issue-183-20260515-0342 branch June 9, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(beta) unlocked_icon stopped working

2 participants