-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
OnBeforeDragEnd replace if position occupied, dont switch position #42
Comments
@HectorLS I'll try to reproduce the issue you mentioned and I'll get back to you ASAP. |
@HectorLS if I understood your problem, you're trying to detect whether an element can be dropped inside the |
Oh! I thought OnBeforeDragMove was only before the first move. Thanks in advance |
Hello @sunpietro , i replicated the sample case on codePen Option 1) i replace the current element by the new one.
Option 2) i prevent the element to be blocked (something like not allowed position);
|
Hello @sunpietro, have you been able to check the codePen? |
@HectorLS have you tried doing this:
As I mentioned here: #42 (comment) |
Hello @sunpietro, thankyou replying me! It's because; the
|
I'm not sure why. I'll try to find some time for debugging this issue. I haven't met that behaviour before. |
Hi again, i have been checking your code but i haven't located the bug 😭 , have you been able to debugge this ? Thanks! |
Hello,
first of all congrats by this awesome library !! 👏 👏
works sweet.
Just found a problem using this OnBeforeDragEnd function.
I am setting the current region with draggable elements as occupied.
So if a new draggable elements try to be dropped there i check a condition and then:
Option 1) i replace the current element by the new one.
Option 2) i prevent the element to be blocked (something like not allowed position);
Because of my project needs i cannot have a region where you just add elements one above or below another.
I need to have like fixed slots. So i implemented this way :
I hope that you understand my question and be able to oriented me 🙏
Thanks in advance
The text was updated successfully, but these errors were encountered: