akserg / ng2-dnd

Angular 2 Drag-and-Drop without dependencies
MIT License
838 stars 251 forks source link

Latest commit 4.0.2 overrides cursor #135

Open dimmank opened 7 years ago

dimmank commented 7 years ago

Bug

The cursor style (pointer) is forced to pointer on elements using the dnd-draggable, dnd-droppable directives. <element [style.cursor]='pointer'>

Update from version 2.2.2 to 4.0.2

Expected behavior should be adding a class that sets the cursor, giving the developer the option to override with a simple css change. Adding a DragDropConfig should not be required.

Never to force a style on to a component

Windows 10

JavanXD commented 7 years ago

I made it work by adding a !important to my child-element but this is bad style. grafik

.myDrager {
    font: normal normal normal 14px/1 FontAwesome;
    color: #868e96;
    cursor: move !important;
}
.myDrager::after {
    content: '\f0c9';
}
Avd6977 commented 7 years ago

Any traction on this bug? Still present in 4.2.0

daveo1001 commented 6 years ago

Also interested.

stewhouston commented 6 years ago

+1. This probably shouldn't be the default behavior.

I was able to override it by explicitly setting [style.cursor]="'default'" on the dnd-droppable.