1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-29 07:00:16 +02:00

🔤 converter - convert also comments

This commit is contained in:
2025-03-14 21:02:48 +01:00
parent 2fcec0551c
commit 64566f17af
4 changed files with 30 additions and 19 deletions

View File

@@ -55,7 +55,10 @@ export function ireland({ src, exportName = "default", props = {} }) {
import(path)
.then(module => {
const component = module[exportName];
element.replaceWith(el(component, props, mark(id)));
const content= el(component, props, mark(id));
element.replaceWith(content);
content.querySelectorAll("input, textarea, button")
.forEach(el=> el.disabled= true);
})
.catch(console.error)
);