diff --git a/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts b/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts index 95216cd543..7f444bea31 100644 --- a/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts +++ b/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts @@ -149,6 +149,8 @@ export class Et2TreeDropdown extends SearchMixin & 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(",") diff --git a/api/js/etemplate/Et2Tree/Et2TreeDropdownCategory.ts b/api/js/etemplate/Et2Tree/Et2TreeDropdownCategory.ts index 16132fdffe..ad9f35dc45 100644 --- a/api/js/etemplate/Et2Tree/Et2TreeDropdownCategory.ts +++ b/api/js/etemplate/Et2Tree/Et2TreeDropdownCategory.ts @@ -41,6 +41,8 @@ export class Et2TreeDropdownCategory extends Et2TreeDropdown */ @property({type: Boolean}) globalCategories = true; + + private keep_import : Et2CategoryTag connectedCallback()