Skip to content
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

Demo within block editor is affected by duplicate #3342

Closed
brianharvey opened this issue Apr 16, 2024 · 1 comment
Closed

Demo within block editor is affected by duplicate #3342

brianharvey opened this issue Apr 16, 2024 · 1 comment
Assignees

Comments

@brianharvey
Copy link
Collaborator

From https://forum.snap.berkeley.edu/t/demo-within-block-editor-is-affected-by-duplicate/16536:

I often include a little demo of a custom block within the block editor, below the block definition. Thus I can always test if any changes I make to the definition code work out well. Ans if anyone else would like to use the custom block (e.g. as part of a library), the demo is part of the documentation, showing how to use it.

However something strange happens when I make a duplicate of the original block (right-click at the block; select "duplicate block definition"): the demo code with the original block's definition is now calling the duplicate block.

@jmoenig
Copy link
Owner

jmoenig commented Apr 17, 2024

Ugh, what an ugly bug! Thanks for reporting, will fix asap...

@jmoenig jmoenig self-assigned this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants