i want to quit the forbbiden cursor while im dragging an element. im using html5 default drag and drop. im using typescript
ive tried to change from ev.target.style.cursor to the "grab" cursor, i tried to change from dropEffect and so on, but none of them make the desire effect. here is the drag code.
<code>
drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
ev.dataTransfer.effectAllowed ="copy";
ev.dataTransfer.dropEffect = "move";
this.evdrag = ev.srcElement;
console.log(ev);
}
</code>
html template:
< div [ngClass]="{'dragged': dragged}" class="btn dragword text-center text-lowercase" style="font-size: 27px; color: rgb(115, 115, 115); height: 44px" id="Repellendus" draggable="true" (dragstart)="drag($event);">Repellendus
typescript drop code:
<code>drop(ev, index) {
ev.preventDefault();
if (this.data != '') {
return;
}
this.optionHover1 = false;
this.data = ev.dataTransfer.getData("text");
this.evdrag.remove();
// ev.target.appendChild(document.getElementById(this.data));
this.checkAnswer(this.data, index);
}</code>