mirror of
https://github.com/esiur/iui.git
synced 2026-04-04 15:08:21 +00:00
radio
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user