Fixed bindings

This commit is contained in:
2026-06-01 06:45:41 -04:00
parent 27690c3afa
commit 171b790fa3
3 changed files with 54 additions and 1 deletions

View File

@@ -140,7 +140,11 @@ export function ShaderCustomPanel({ layer, ui, onParameterChange, onResetParamet
return;
}
if (element.parentNode !== node) {
node.replaceChildren(element);
try {
node.replaceChildren(element);
} catch (error) {
setLoadError(error instanceof Error ? error.message : "Custom controls failed to mount.");
}
}
}}
>