-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Navigation block: prevent drag & drop out of the editable list view sidebar #46994
Comments
This is a great bug find. I'll take a look into it. |
Was able to replicate but had to have other blocks in the canvas which I could drag the Page List into. |
This problem exists in the list view as well. |
My plan here is to:
|
Hmm, this is actually a feature, not a bug. I guess it might not make much sense for the off canvas editor, but for the persistent list view it works that way on purpose. You can drag from the canvas into List View or the other way around. |
Ah I see. Well thanks for clarifying. For the Nav block offcanvas this does not make sense to me so I still think we should "fix" it. What do you think @draganescu? |
Does anyone actually do that and not think they broke the thing? |
I don't really know why you would do it if it wasn't on purpose 🤔 |
TBH I did it by accident and very easily when trying to rearrange navigation items. I think that's going to be a pretty common use case and it just takes a slight slip to drop it in the canvas. |
Thanks, I was just going to mention that this is a really useful feature for the main list view, so that folks can drag an item from the list view onto the editor canvas and see visually where the item is going to land. That said, if it's important to fix for the cases of the navigation block or other potential uses of the list view, I quite like @getdave's idea of adding in some kind of context for the drag and drop (#46994 (comment)) — it sounds like we'd want to still allow the drag and drop between the main list view and editor canvas, but not between the Navigation block's sidebar list view and the editor canvas. |
Thinking about this more, is this actually a problem? I think it behaves as I would expect as a user. |
I'll note that I did it completely by mistake when trying to use drag and drop. I found it pretty frustrating as it created more work for me to undo and it's not a common action I think anyone would want to take from there. |
Description
Using the new navigation block experience with Gutenberg 14.9, I noticed I could drag and drop the page list block out of the sidebar and onto the page, making for a very confusing experience.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
drag.drop.page.list.block.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: