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: |
talldan
left a comment
There was a problem hiding this comment.
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.jsfiles for terms that need renaming or removal).