added dragstop listener and dragStop method

This commit is contained in:
Joel McKinnon 2020-03-02 11:46:16 -08:00
parent 71424dcf8d
commit 97f829da9f

View File

@ -31,6 +31,7 @@
:class="{ 'is-enabled': !domainObject.isDefault }"
:draggable="!domainObject.isDefault"
@dragstart="dragStart"
@dragstop="dragStop"
@dragover.stop
></span>
<span
@ -246,6 +247,9 @@ export default {
e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0);
this.$emit('setMoveIndex', this.conditionIndex);
},
dragStop(e) {
e.dataTransfer.clearData();
},
destroy() {
},
removeCondition(ev) {