cat tree for selection of categories fix if value is not a string

This commit is contained in:
milan 2024-08-21 13:05:06 +02:00
parent 3f789cfdce
commit bca9931fba
2 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,8 @@ export class Et2TreeDropdown extends SearchMixin<Constructor<any> & Et2InputWidg
@property()
set value(new_value : string | string[])
{
if(!new_value)new_value="";
if(typeof new_value === 'number'){new_value += ""}
if(typeof new_value === "string")
{
new_value = new_value.split(",")

View File

@ -41,6 +41,8 @@ export class Et2TreeDropdownCategory extends Et2TreeDropdown
*/
@property({type: Boolean}) globalCategories = true;
private keep_import : Et2CategoryTag
connectedCallback()