-
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
Site Editor: inconsistent undo/redo behavior with navigation block #38970
Comments
Hi @annezazu 👋 I think I could reproduce this. From what I can tell, pressing undo works the first time to change the menu back. But then pressing redo doesn't seem to work. I think that's what happens in the video too.
Does one of the menus have a Page List inside of it? It's hard to tell but it looks like the Page List loading spinner might be momentarily being shown when clicking undo. This bit I couldn't reproduce, but there might be something more specific needed. Or it may have been fixed in |
That's correct! It seems to break on undo and the page list block is what was being used in the video.
Yes, I'm seeing that "flashing" too. Thanks for digging in. |
@getdave and I just confirmed that the Page List comes with a But from what I can tell, the visual glitching is the new dashed-line placeholder design that very briefly appears in between loads. That issue should very probably be fixed by #38907. I've on my todo a small followup to avoid layout shifts in that loading state, which should polish up the last part of that. |
I can still reproduce this using Version 14.2.0 The undo seems to work just fine, it is the re-do that's getting stuck, and only if you edit a different block in between. Screen.Capture.on.2022-10-10.at.17-53-17.mp4 |
@mrfoxtalbot Thank you for taking the time to test this. Would it be possible to expand on the problem a little in written form?
This will really help when contributors start to look into the problem. |
Sure @getdave! These are the steps:
I noticed that undoing works fine, but the "redo" option seems to stop working altogether if you mix changes to other blocks. I do not think this is particularly severe, but something is not working as expected and it could have other ramifications. Thank you! |
I think this was fixed by #50911. I can't reproduce the issue when following the steps from @mrfoxtalbot - #38970 (comment). |
Yup! I just tested this with 15.8.1 and undo/redo works fine now. Thank you @Mamaduka! |
Description
This came up as part of the FSE Outreach Program's All Things Media exploration. Of note, there are some similar issues here: #37171 #37170 Across the board, there seems to be some inconsistencies here for folks to dig into but trying to open specific use cases for now. There may need to be a tracking issue depending.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
undo.redo.in.site.editor.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: