Skip to content

Conversation

nielslyngsoe
Copy link
Member

Continue the work of #19962

To ensure its implemented for all Block Editors and rename the method to fallbackRender to avoid misunderstanding with default.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames the defaultRenderMethod property to fallbackRender across block editor components and implements it consistently for all Block Editors. The change addresses potential confusion between "default" rendering behavior and fallback rendering when no custom extensions are available.

Key changes:

  • Renamed defaultRenderMethod to fallbackRender for clarity
  • Implemented fallbackRender property in both extension slot components
  • Updated all block editor components to use the new property consistently

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
extension-with-api-slot.element.ts Added fallbackRender property and renderNoting helper method
extension-slot.element.ts Renamed defaultRenderMethod to fallbackRender and refactored rendering logic
block-rte-entry.element.ts Updated to use fallbackRender with new renderBuiltinBlockView method
block-list-entry.element.ts Converted renderBuiltinBlockView to arrow function and updated extension slot usage
block-grid-entry.element.ts Updated to use fallbackRender property instead of defaultRenderMethod

@nielslyngsoe nielslyngsoe changed the title Fix: rename and implement fallbackRender Fix: rename and implement fallbackRenderMethod Aug 27, 2025
@iOvergaard iOvergaard disabled auto-merge August 27, 2025 11:11
@iOvergaard iOvergaard merged commit a2b2ecb into main Aug 27, 2025
11 of 14 checks passed
@iOvergaard iOvergaard deleted the v16/feature/rename-extension-slot-fallback-render branch August 27, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants