fix type error if widget does not have div or body

This commit is contained in:
milan 2024-09-19 17:36:27 +02:00
parent 160f0e9aa7
commit 26673f87fb
2 changed files with 5 additions and 5 deletions

View File

@ -839,7 +839,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
return;
}
let id = option.value ?? (typeof option.id == 'number' ? String(option.id) : option.id);
console.log(event.type, id);
//console.log(event.type, id);
const typeMap = {
dragenter: EGW_AI_DRAG_ENTER,

View File

@ -177,13 +177,13 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
this._actionObject = null;
}
this.div.off();
this.title.remove();
this.div?.off();
this.title?.remove();
this.title = null;
this.body.remove();
this.body?.remove();
this.body = null;
this.icons = null;
this.div.remove();
this.div?.remove();
this.div = null;
jQuery('body.egw_tooltip').remove();