Give nextmatch header templates a chance to load their children before binding to inputs

Fixes inputs in nested templates did not submit nm
This commit is contained in:
nathan 2024-06-26 14:23:48 -06:00
parent 92b0beb134
commit f9de309e2c

View File

@ -3685,8 +3685,17 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
}, 1); }, 1);
break; break;
} }
// Give child templates a chance to load before we bind inputs
let children = [];
header.iterateOver((_widget) =>
{
children.push(_widget.loading);
}, this, et2_template);
Promise.all(children).then(() =>
{
self._bindHeaderInput(header); self._bindHeaderInput(header);
}); });
});
} }
/** /**