Fix conflict between Et2Select static type options & custom options resulted in losing the type options

This commit is contained in:
nathan
2022-05-31 09:58:49 -06:00
parent 5f7d1c50a2
commit c572fa637d
2 changed files with 15 additions and 4 deletions

View File

@ -178,7 +178,10 @@ export function find_select_options(widget, attr_options?, options : SelectOptio
}
if(!added)
{
options.splice(parseInt(i), 0, content_options[i]);
options.splice(parseInt(i), 0, typeof value == "object" ? value : {
value: value,
label: <string><unknown>content_options[i]
});
}
}
content_options = options;