fix: the private key export screen opens again in the same popup session #478

Merged
clawbot merged 1 commits from issue-460-export-privkey-reopen into next 2026-10-06 19:43:08 +02:00
1 Commits
Author SHA1 Message Date
sneak 64a9850d97 fix: the private key export screen opens again in the same session (closes #460)
check / check (push) Successful in 5m47s
e2e / e2e-chrome (push) Successful in 5m18s
e2e / e2e-firefox (push) Successful in 2m44s
show() found the address line through the element inside it, then
replaced the line's contents with renderAddressHtml(), which deleted
that element, so the next show() in the same popup session threw
before it navigated. The line now carries the export-privkey-address
id itself and is looked up by it. No other view that renders an
address finds its container through a child.

The jest DOM stub now takes an element out of the document when its
parent's contents are replaced, and a new test opens the screen
twice. The #253 e2e case no longer reopens the popup before its
second open.

Model: opus-5-5
2026-10-06 14:05:13 +00:00