mirror of
https://github.com/esiur/iui.git
synced 2025-05-06 06:42:58 +00:00
fix
This commit is contained in:
parent
b601d541cc
commit
22a2a2e413
@ -359,8 +359,10 @@ export class IUI {
|
||||
// @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
|
||||
if (!(await el.dataMap.render(data)))
|
||||
await el.render();
|
||||
if (!(await el.dataMap.render(data))){
|
||||
// @BUG @TODO this causes stackoverflow
|
||||
// await el.render();
|
||||
}
|
||||
}
|
||||
else {
|
||||
await el.setData(data);
|
||||
|
@ -166,8 +166,10 @@ export default IUI.module(class Repeat extends 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
|
||||
if (!(await el.dataMap.render(value[i])))
|
||||
await el.render();
|
||||
if (!(await el.dataMap.render(value[i]))) {
|
||||
// @BUG @TODO this causes stackoverflow
|
||||
// await el.render();
|
||||
}
|
||||
}
|
||||
else {
|
||||
await el.setData(value[i]);
|
||||
|
@ -210,8 +210,10 @@ export default IUI.module(
|
||||
try {
|
||||
if (stateRoute.dataMap != null) {
|
||||
// if map function failed to call setData, we will render without it
|
||||
if (!(await stateRoute.dataMap.render(data || {})))
|
||||
await stateRoute.render();
|
||||
if (!(await stateRoute.dataMap.render(data || {}))){
|
||||
// @BUG @TODO this causes stackoverflow
|
||||
// await stateRoute.render();
|
||||
}
|
||||
|
||||
if (viewRoute != stateRoute) await viewRoute.setData(stateRoute.data);
|
||||
} //if (data !== undefined)
|
||||
|
Loading…
x
Reference in New Issue
Block a user