-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bug: none of the DFlex events are dispatched #739
Comments
Hi @ddenev , I published a patched version. I hope it solves the issue. I still expect some bugs though. |
Thank you, @jalal246! Will test and let you know |
I have several questions:
|
Meanwhile, you can try another event: https://github.com/dflex-js/dflex/blob/main/packages/dflex-dnd/src/Events/constants.ts#L3-L26 |
@ddenev, type PayloadDragCommitted = {
/** Represents the main category of the drag event. */
category: typeof DRAG_CAT;
/** Indicates the timestamp when the event occurred. */
timestamp: number;
/** Targeted elements */
element: HTMLElement;
indexes: {
/** The initial index of the moved element. */
initial: number;
/** The index where it was inserted in the receiving container. */
inserted: number;
};
containers: {
/** The container from which the element originated. */
origin: HTMLElement;
/** The container where the element is now located. */
target: HTMLElement;
};
} |
@jalal246, that's very nice, thank you! I will play with this the next couple of day and will let you know :) |
Sandbox for the bug: https://codesandbox.io/p/sandbox/holy-hill-fy6sy2
Expected: dragging should show console logs for
$onDragOutContainer
,$onDragOutThreshold
,$onDragOver
,$onDragLeave
events.Even when subscribing to layout/mutation, none of the drag events are fired.
@jalal246, this bug is currently blocking me from using DFlex as I need the events in order to update my state.
Related discussion: #737
The text was updated successfully, but these errors were encountered: