2
0
mirror of https://github.com/esiur/iui.git synced 2026-04-04 15:08:21 +00:00
This commit is contained in:
2025-11-26 18:47:05 +03:00
parent 3c70801d08
commit 67e4b5268b
9 changed files with 239 additions and 6 deletions

View File

@@ -368,7 +368,11 @@ export class IUI {
// render children
for (var i = 0; i < element.children.length; i++) {
let el = element.children[i];
if (el instanceof IUIElement) {
if (el.hasAttribute("i-skip-data"))
continue;
if (el instanceof IUIElement) {
// @TODO should check if the element depends on parent or not
if (el.dataMap != null) {
// if map function failed to call setData, we will render without it

View File

@@ -56,6 +56,7 @@ export default class IUIElement extends HTMLElement {
async setData(value, radix) {
this._data = value;
this._radix = radix;
this._emit("data", {data: value});
await IUI.render(this, value, false, radix);