-
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
Fix error triggering after duplicating a block making it unselectable. #38760
Fix error triggering after duplicating a block making it unselectable. #38760
Conversation
Thanks for looking into this issue @delowardev. The more I look at the code in As you mention, I'm going to add some reviewers that have worked on this in the past for some further opinions. If I recall correctly @adamziel and @noisysocks worked on the |
I'm not 100% sure either. This bit of the codebase has had a lot of iteration so very possible it's not used anymore. Feel free to remove it and see what happens 😀 just be sure to test List View in the site editor, post editor, widgets editor, navigation block toolbar, and experimental navigation editor. |
After looking at the code for a while, I think I have a good idea for a fix. It looks like all that needs to be changed is this line:
Which can be changed to this: __experimentalSelectBlock={ selectBlock } Reasoning: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems to work well now, thanks for spotting the bug and fixing it.
Fixes: #38759
Description
After duplicating a block from List View, it doesn't select that block and throws an error.
Testing Instructions
Screenshots
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).