mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
fix type error if widget does not have div or body
This commit is contained in:
parent
160f0e9aa7
commit
26673f87fb
@ -839,7 +839,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let id = option.value ?? (typeof option.id == 'number' ? String(option.id) : option.id);
|
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 = {
|
const typeMap = {
|
||||||
dragenter: EGW_AI_DRAG_ENTER,
|
dragenter: EGW_AI_DRAG_ENTER,
|
||||||
|
@ -177,13 +177,13 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
|||||||
this._actionObject = null;
|
this._actionObject = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.div.off();
|
this.div?.off();
|
||||||
this.title.remove();
|
this.title?.remove();
|
||||||
this.title = null;
|
this.title = null;
|
||||||
this.body.remove();
|
this.body?.remove();
|
||||||
this.body = null;
|
this.body = null;
|
||||||
this.icons = null;
|
this.icons = null;
|
||||||
this.div.remove();
|
this.div?.remove();
|
||||||
this.div = null;
|
this.div = null;
|
||||||
|
|
||||||
jQuery('body.egw_tooltip').remove();
|
jQuery('body.egw_tooltip').remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user