remove drag-drop hover effect on drop regarding #97141

This commit is contained in:
milan 2024-09-27 15:17:13 +02:00
parent 8f1e61d08e
commit b04d4b28b7

View File

@ -848,7 +848,8 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
const typeMap = {
dragenter: EGW_AI_DRAG_ENTER,
dragleave: EGW_AI_DRAG_OUT
dragleave: EGW_AI_DRAG_OUT,
drop: EGW_AI_DRAG_OUT,
}
this.widget_object.getObjectById(id).iface.triggerEvent(typeMap[event.type], event);
}
@ -1068,6 +1069,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
}
@dragenter=${(event) => {this.handleDragEvent(event);}}
@dragleave=${(event) => {this.handleDragEvent(event);}}
@drop=${(event) => {this.handleDragEvent(event);}}
>
<sl-icon name="chevron-right" slot="expand-icon"></sl-icon>
<sl-icon name="chevron-down" slot="collapse-icon"></sl-icon>