fix(ui): defer showModal until dialog is connected to DOM · openclaw/openclaw@e8227fd
nickmopen
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -100,6 +100,8 @@ describe("renderSkills", () => {
|
100 | 100 | |
101 | 101 | it("opens detail dialogs and routes ClawHub actions", async () => { |
102 | 102 | const container = document.createElement("div"); |
| 103 | +document.body.append(container); |
| 104 | +dialogRestores.push(() => container.remove()); |
103 | 105 | const onDetailClose = vi.fn(); |
104 | 106 | const showModal = vi.fn(function (this: HTMLDialogElement) { |
105 | 107 | this.setAttribute("open", ""); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。