Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested child component's native (dragover) event blocked by parent [dndDraggable] #180

Open
dstj opened this issue Nov 7, 2024 · 0 comments

Comments

@dstj
Copy link

dstj commented Nov 7, 2024

Describe the bug
I have nested components representing "sections of data", each sections has a grid component (Ag-Grid) with multiple rows.

The sections can be dragged to reorder them and each grid row can be dragged either
a) within the same grid (same section) or
b) to another grid (another section)

The drag across grids drag and drop is JS native drag and drop. The bug I face is that since trying to migrate from ng-dragula to ngx-drag-drop, the native (dragover) and (drop) events are not fired on the grid parent div. The (dragstart) event is.

To Reproduce
I created a simple reproduction that only uses simple divs.

See this simple reproduction here

Steps to reproduce the behavior:

  1. Open the dev console
  2. From the top component, drag row1 to row2 and check that the JS Event are fired (start, drag, drop)
  3. Try the same in the bottom part
  4. Only the drag start event will be fired.
  5. Confirm that the ngx-drag-drop DRAG ME HERE work...

Expected behavior
The (dragover) event of the "grid row" component should fired even when nested inside a ngx-drag-drop item.

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • Browser: Brave
  • Version 1.71.123 Chromium: 130.0.6723.116 (Official Build) (64-bit)](https://brave.com/latest/)

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant