mirror of
https://github.com/nasa/openmct.git
synced 2025-01-05 04:44:14 +00:00
add setData on dragStart for FF support
This commit is contained in:
parent
96e433beaa
commit
3aec9ec6ff
@ -236,6 +236,7 @@ export default {
|
|||||||
this.domainObject.configuration.criteria.push(criteriaObject);
|
this.domainObject.configuration.criteria.push(criteriaObject);
|
||||||
},
|
},
|
||||||
dragStart(e) {
|
dragStart(e) {
|
||||||
|
e.dataTransfer.setData('dragging', e.target); // required for FF to initiate drag
|
||||||
e.dataTransfer.effectAllowed = "copyMove";
|
e.dataTransfer.effectAllowed = "copyMove";
|
||||||
e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0);
|
e.dataTransfer.setDragImage(e.target.closest('.c-c-container__container'), 0, 0);
|
||||||
this.$emit('setMoveIndex', this.conditionIndex);
|
this.$emit('setMoveIndex', this.conditionIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user