fix delete bug

This commit is contained in:
Mutasem 2021-10-26 12:50:32 +02:00
parent 8de96a346c
commit f8eb2dd090

View file

@ -1587,6 +1587,7 @@ export default mixins(
mousedown: (overlay: Overlay, event: MouseEvent) => {
const element = event.target as HTMLElement;
if (element.classList.contains('delete') || (element.parentElement && element.parentElement.classList.contains('delete'))) {
activeConnection = null;
this.instance.deleteConnection(info.connection); // store mutation applied by connectionDetached event
}
else if (element.classList.contains('add') || (element.parentElement && element.parentElement.classList.contains('add'))) {