add setData on dragStart for FF support

This commit is contained in:
Joel McKinnon 2020-02-27 14:36:21 -08:00
parent 96e433beaa
commit 3aec9ec6ff

View File

@ -236,6 +236,7 @@ export default {
this.domainObject.configuration.criteria.push(criteriaObject);
},
dragStart(e) {
e.dataTransfer.setData('dragging', e.target); // required for FF to initiate drag
e.dataTransfer.effectAllowed = "copyMove";
e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0);
this.$emit('setMoveIndex', this.conditionIndex);