swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!
https://swimlane.github.io/ngx-dnd/
MIT License
575 stars 135 forks source link

[Bug] Having a draggable element with `display: inline-block` inside a droppable container will disable dragging. #204

Open abaza738 opened 3 years ago

abaza738 commented 3 years ago
[x] bug report
[ ] feature request
[ ] support request

Current behavior With a droppable container, when adding a draggable item dynamically and assigning display: inline-block to its CSS will disable it from being draggable.

Expected behavior Adding display: inline-block should not interfere with the dragging behaviour. It serves certain styling goals within our development team.

Reproduction of the problem

What is the motivation / use case for changing the behavior? Customized styling inside the droppable container.

Please tell us about your environment:

Demonstration

This short video demonstrates when inline-block items cannot be dragged outside the container or even sorted among themselves inside the container. Removing the mentioned CSS will make it work.
https://i.gyazo.com/954e3d53ef1363f01d9b83fb574fe0da.mp4