fix initialize of dropdownmenu after melt migration

This commit is contained in:
Ruben Fiszel
2025-02-24 13:16:40 +01:00
parent 7ef8100250
commit 0329d91ee9
2 changed files with 23 additions and 1 deletions
@@ -155,8 +155,9 @@
}}
>
<AppButton
noInitialize
extraKey={'idx' + actionIndex}
{render}
render={true}
id={actionButton.id}
customCss={actionButton.customCss}
configuration={actionButton.configuration}
@@ -16,6 +16,27 @@
$: !firstLoad && canInitializeAll($initialized?.initializedComponents, $app) && refresh()
function canInitializeAll(initialized: string[] | undefined, app: App) {
// console.log(
// 'canInitializeAll',
// JSON.stringify(
// {
// initialized: initialized,
// items: allItems(app.grid, app.subgrids).map((x) => x.id),
// // missing1: allItems(app.grid, app.subgrids).filter((x) => !initialized?.includes(x.id)),
// missing2: initialized?.filter(
// (x) =>
// !allItems(app.grid, app.subgrids)
// .map((x) => x.id)
// .includes(x)
// )
// },
// null,
// 2
// ),
// initialized?.length ==
// allItems(app.grid, app.subgrids).length + (app.hiddenInlineScripts?.length ?? 0)
// )
if (app.lazyInitRequire == undefined) {
return (
initialized?.length ==