-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Regression: put: false not working #1416
Comments
@johanneswilm Please ensure the two Sortables you are using do not have the same group name, otherwise the |
@owen-m1 ok, then maybe I don't understand how this is supposed to work in 1.8.0. As I understand it, and as it seems to be working in 1.7.0 and what the documentation seems to say, the group name makes sure that you can move between lists using the same group name. So say I have two lists and I only want items from list one to be movable to list two, but not the other way round, I do: List one:
List two:
Did I misunderstand the documentation and is this just accidentally working for me in 1.7.0? If so, how would I achieve the same goal? |
I kind of need to do what is being done here: Lines 119 to 139 in 96a5fec
If I'm not mistaken, the group name stays the same in all those three, while pull/put are being changed, right? |
I am not entirely sure of the original intent, but I know for a fact that it was broken before. I believe the current functionality was the original intent. If you want the The reason I believe that this was the original intent is because there is the option of setting pull or put to an array of group names that it should allow. But I am a new maintainer so not 100% sure. Also, |
I don't think your change makes sense. Say you have several lists with the same group. group.name is the same and say group.put === false. So then you cannot move anything between those lists, so what's the point of having the same group? The consequence of your change is then that put and pull should never be false, right? Could we ask a previous maintainer about this? I think this is a quite central feature of 1.7.0 so unless it's restored as it was or the functionality is reimplemented in some other way, we are missing something here. I just need to be able to do what is happening in the demo I linked to in my last reply here. |
No, you are wrong about the behavior. In the case that you have several sortables with the same group name, The way I see it, if it was set up so that Perhaps it can be such that if a sortable has the same group as another sortable, the default will be that |
Have you looked at the example I linked to above? That is part of the demo of this repo and afaict it works as I described. I don't think it makes groups redundant either. Groups can be things like "people", "books" and "cars" that all need to be on the same webpage (for some reason) but shouldn't be draggable into oneanother's containers. Having the group name disable the other option does not seem to be helpful. As for the last paragraph: I am not sure I understood it fully, but basically you seem to be saying you are willing to reestablish the previous behavior as a config option. I'm fine with such a solution. |
@johanneswilm Yes, you are right, the demo does indicate that the behavior you described would be what is intended. And yes, I believe this would be covered by the change I described in the last paragraph of my previous comment. I will include this fix in |
Great. Thank you! |
👍 the functionality described by @johanneswilm is crucial for our use case as well (which we developed using the approaches from the demos) |
@johanneswilm @tedwardmah 1.8.0 is now released, with the desired behavior |
Problem:
put: false is not working in 1.8.0-rc1. It is working in 1.7.0.
Please let me know if the issue is not immediately obvious, in which case I will try to create a jsfiddle.
The text was updated successfully, but these errors were encountered: