-
Notifications
You must be signed in to change notification settings - Fork 108
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
Is there a way to have a non-draggable element in the dndzone? #334
Comments
Found this unsolved question, #327 which is pretty much what I'm trying to accomplish. |
Hi,
For #327 I offered a solution in the last comment but I don't know if the ticket creator gave it a shot. |
Hi there. I just updated my PR to introduce this non-draggable elements into the drop-zone. I've reverted the disableDrag option on the items because I need to update the keyboardAction file which I forgot lol.
You're welcome! |
instead of adding an element in order to control the height (is there any other reason we are adding it there?), can we instead add an option to treat the dropzone as if it is bigger? |
@isaacHagoel that makes totally sense. Adding that element inside the dndzone is more of a hackish solution for the height issue. There is no other reason for it. I'll explore adding that in a few hours. Feel free to close the PR :) |
@Fedeorlandau hi, any updates on this? |
Hi @isaacHagoel I couldn't find a way to increase the min-height for it. Sorry. |
Hello folks, thank you for this amazing library.
I was wondering if there is a way to make a child of dndzone not draggable, check this:
https://svelte.dev/repl/79d20aa7e7264fbbbc9145a3f98a2b87?version=3.22.2
The issue is that the
<div>
enclosing the input and the button is draggable and it's causing a few issues.Why do I need this? because I'd like to keep the dndzone full height and this "new item" div always at the bottom of the last item.
Regards!
The text was updated successfully, but these errors were encountered: