-
Notifications
You must be signed in to change notification settings - Fork 869
Site Editor Compatibility: Map block #19482
Copy link
Copy link
Closed
Labels
BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended[Block] Map[Focus] BlocksIssues related to the block editor, aka Gutenberg, and its extensions developed in JetpackIssues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack[Focus] FSEIssues related to the site editor / Full Site Editing / FSE feature in GutenbergIssues related to the site editor / Full Site Editing / FSE feature in Gutenberg
Description
In the new site editor in Gutenberg (/wp-admin/admin.php?page=gutenberg-edit-site), there are some issues with the Map block in the editor. The Map block itself appears to be able to be initialised within the site editor canvas, likely as a result of the editor canvas being rendered within an iframe. It looks like Mapbox expects to be given a string to match against a DOM node, or be given a DOM node.
Is there a way for us to get the Mapbox initialisation to play nicely with an iframe?
Steps to reproduce the issue
- With the Gutenberg plugin active (>=10.4.0-rc1), activate a block-ready theme (like tt1-blocks)
- In the site editor, insert a Map block into the Footer template part
- Observe that the map block throws an error as in the screenshot below
- Save the template part
- Observe that the map does render on the front end of the site
What I expected
The map to render and be usable within the editor
What happened instead
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugWhen a feature is broken and / or not performing as intendedWhen a feature is broken and / or not performing as intended[Block] Map[Focus] BlocksIssues related to the block editor, aka Gutenberg, and its extensions developed in JetpackIssues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack[Focus] FSEIssues related to the site editor / Full Site Editing / FSE feature in GutenbergIssues related to the site editor / Full Site Editing / FSE feature in Gutenberg
