NUI drag and drop not working (Just TODAY)

Hello i have a problem just today (i think) after fivem update my drag and drop script dont work any more
so its work when you drag its registering the drag but when you drag over or enter another box its not working

DragNSort.prototype.onDragStart = function (_this, event) {
  _this.$activeItem = this;
  fromslot = this.firstChild.id
  firstitem = this.firstChild.className
  oldqte = document.getElementById(fromslot).firstChild.innerHTML.match(/[^(]*/i)[0]
  //iteminfo(firstitem.split(' ').slice(2)[0])

// this is working
  
if (!(firstitem === "ts im empty")) {
  
  this.classList.add(_this.dragStartClass);
  event.dataTransfer.effectAllowed = 'move';
  event.dataTransfer.setData('text/html', this.innerHTML);
}
};

DragNSort.prototype.onDragEnd = function (_this) {
  if (!(firstitem === "ts im empty")) {
    // this is working
  this.classList.remove(_this.dragStartClass);
}
};

DragNSort.prototype.onDragEnter = function (_this) {
  if (!(firstitem === "ts im empty")) {
     // this is not working
  this.classList.add(_this.dragEnterClass);
}
};

DragNSort.prototype.onDragLeave = function (_this) {
  if (!(firstitem === "ts im empty")) {
     // this is not working
  this.classList.remove(_this.dragEnterClass);
}
};

DragNSort.prototype.onDragOver = function (_this, event) {
 // this is not working
  if (event.preventDefault) {
  event.preventDefault();
  }

  event.dataTransfer.dropEffect = 'move';

  return false;
};

sorry for bad english and thank you

I have the same problem, worked before the update, completely broke my inventory…

Any news about the drag in drop? I do the native HTML5 drag in Drop and nothing

Nope, I haven’t heard any news about native HTML5 drag&drop. I switched to jQuery, that works, so you might want to check it out yourself

I Switch to jquery UI drag and drop its working for me html5 drag and drop its no longer supported :slightly_frowning_face: