I tested both example from docs and your example. Both work, so docs example is not broken, as I previously assumed. Something else is the problem. Perhaps you started with one version of the block and then renamed something in code, or accidently added something. Enter code editor instead of visual editor in block editor options and check your block code. If that was an error, please edit original question with adding block code for future reference of all readers.
Related Posts:
- WordPress Full Site Editing: How can I access my posts listing page?
- block theme FSE – save changes to the theme?
- How to set the background color of a template part (Header/Footer) in Twenty Twentythree?
- How to move the customizations done in the Editor to my child theme?
- Block Theme Template parts – Why saving a part updates the other ones?
- Get postId in a wordpress pattern file?
- Full Site Editing (FSE) – How do I display no results with wp:query?
- How can I disable fontSizes of the Paragraph block inside the Quote block with theme.json?
- In Full Site Editing, how do I get the templates I created to appear in the site editor when populating a new page?
- Custom Link Block with own background color
- Position tab missing in the Block Theme Editor
- Set a default overlay color for the Core Cover block in theme.json
- Extending the Query Loop block
- Query Loop block display multiple post types
- Add pre-publish conditions to the block editor
- How does Gutenberg handle translations in React?
- How can I access core/paragraph textColor in a block template
- Saving post meta using the new EntityProvider APIs
- Implement Panel Color Inspector Control in Gutenberg
- gutenberg dynamic block is returning 404
- How should you internationalize javascript spread in multiple files but build in one?
- Why is onChange={ ( content ) => setAttributes( { content } )} now used?
- How to set column widths in a CPT block template?
- Access GutenBerg data with Javascript?
- Only show focused toolbar for Gutenberg Block with Multiple text fields
- Gutenberg: How to Change Post Status Programmatically?
- Enhancing Gutenberg featured image control
- Gutenberg LinkControl suggestionsQuery not working
- Gutenberg – How to prevent block from being deleted and reordered/moved
- WordPress Gutenberg Columns block
- Gutenberg InnerBlocks predefined block supports
- Is it possible to bulk migrate all deprecated instances of a gutenberg block?
- How to Add a Container Class to Standard Gutenberg Blocks
- How to display InnerBlocks in render callback
- How to check if post has Video or Gallery block in Gutenberg blocks?
- Gutenberg – button to parse and format all blocks?
- Custom WP Block using Inner Blocks crashes editor, doesn’t save content
- Delete a Gutenberg Block Programmatically?
- Can Gutenberg be used as an editor on a page?
- Import external data into post using custom Gutenberg block
- Can’t run WP e2e-test-utils because the browser exits on login?
- Modify the InnerBlocks ‘Add block’ block appender label
- Do I need wp-tinymce-js?
- wp_schedule_single_event issue with save_post hook in gutenberg
- Gutenberg TextareaControl escapes html
- Block editor fails to update HTML section when the word “from” is in source code
- Gutenberg extending the existing class
- Block Controls not showing
- Gutenberg and FSE: How to exclude a block from full site editing
- Disable only one Gutenberg block programatically / coblock/maps not listed in blocks
- How to select block variation from BlockVariationPicker
- Editable button with RichText for Gutenberg custom block
- How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?
- How to reload data stored for a sever side gutenberg block in the editor
- How to remove the old “Custom CSS” from customizer after the theme has been migrated to Gutenberg FSE
- Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
- Gutenberg editor auto remove wrapping tags like
- Setting fontSize within core/heading
- Unable to edit server side rendered block
- useSelect in block Edit always returns default store value
- Count Gutenberg blocks on the front-end?
- How to call a react hook on edit of registerBlockType?
- Why does the paragraph block automatically add class?
- How to make attributes unique to Gutenberg blocks
- How to check title is being entered in Title Case?
- Gutenberg link of internal page not showing
- How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?
- Create Gutenburg Block to render inline SVG
- Gutenberg blocks not full width
- How to extend the URLPopover render settings for the paragraph Gutenberg block?
- Custom Image Gutenberg Block With Caption
- Narrow paragraph block aligned to left of “wrapper”
- How to display dynamic block editor on front-end?
- Enable varying text for Phone, Tablet and Desktop
- Debouncing Input value with block attributes
- Update Content for a Custom Block Toolbar Button
- Using the block theme in production
- When using the MediaPlaceholder component, will skipping blobUrl handling break something?
- Pass component name in onChange [closed]
- Add another option to default link control settings panel?
- With full-site-editing menus, how do I create a non-linking top-level menu item with linking sub-pages
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- How do I add filters in Twenty-Twenty-Three without a functions.php?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Add a new option to Social Link block
- Editing Inline fonts/typeface using the block editor
- add_editor_style now copying html styles to .editor-styles-wrapper?
- Building my first ever Gutenberg block
- Add custom block to submenu variation
- Is there a frontend equivalent for add_menu_page?
- How do I load styles for editing the admin interface for the block builder?
- Unable to edit custom post type, editor crashes. What to do?
- Gutenberg – Shadow settings not available (theme.json)
- Block Validation Error
- FSE Change Post Template to Something Other Than a List
- Add Gallery items programmatically inside an InnerBlock
- Is it possible to add settings to a search block in Gutenberg?
- Block markup not working inside WP_Query
- What is the name of the user capability to read a synced pattern inside a post?