Skip to content

manager: fix update dialog being re-opened on every recomposition - #1526

Merged
Admirepowered merged 1 commit into
bmax121:mainfrom
Prslc:fix/update-card-dialog-reopens
Aug 4, 2026
Merged

manager: fix update dialog being re-opened on every recomposition#1526
Admirepowered merged 1 commit into
bmax121:mainfrom
Prslc:fix/update-card-dialog-reopens

Conversation

@Prslc

@Prslc Prslc commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The trailing lambda in UpdateCard bound to WarningCard's icon parameter instead of onClick since the component rewrite in 61e261d appended the icon slot after onClose. The click handler was therefore executed as a side effect during composition: every recomposition called showConfirm() and re-opened the changelog dialog, so canceling it only triggered another recomposition and the dialog could never stay closed.

Pass the handler explicitly as onClick.

The trailing lambda in UpdateCard bound to WarningCard's `icon` parameter
instead of `onClick` since the component rewrite in 61e261d appended the
icon slot after onClose. The click handler was therefore executed as a
side effect during composition: every recomposition called showConfirm()
and re-opened the changelog dialog, so canceling it only triggered
another recomposition and the dialog could never stay closed.

Pass the handler explicitly as `onClick`.
@Admirepowered
Admirepowered merged commit 8e44767 into bmax121:main Aug 4, 2026
1 check passed
@Prslc
Prslc deleted the fix/update-card-dialog-reopens branch August 4, 2026 17:56
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.

2 participants