K
K
Klaus Kater2016-04-01 14:37:08
Ember.js
Klaus Kater, 2016-04-01 14:37:08

How to drag-drop an ember component?

Hello. For some reason, only the drag, or only the event drop, works on the Ember component.
Hung 4 events

dragEnter(event) {
    event.preventDefault();
    console.log('dragEnter ' + this.name);
  },
  dragLeave(event) {
    event.preventDefault();
    console.log('dragLeave ' + this.name);
  },
  dragOver(event) {
    event.preventDefault();
    console.log('dragOver ' + this.name);
  },
  dragStart(event) {
  	console.log('dragStart ' + this.name);
    return false;
  },

Either dragStart or all the others work. They don't want to work together. What is the problem I can't understand.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question