Skip to content

Custom components don't display previews #9

@AdrianSanduleasa

Description

@AdrianSanduleasa

Describe the bug
Custom components don't have a preview on 2.4.5-p1.

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom component
  2. Go to Admin -> Content -> Blocks
  3. Click on Add New Block
  4. Scroll down to the content area and edit using Page Builder. Add a new row and inside that row, drag the newly created component which by default is "My Custom Type".
  5. You will notice that there is no preview content. The following content is not present in the preview:
    <div class="my-class" attr="data.my_element.attributes" data-bind="liveEdit: { field: 'my_field', placeholder: $t('Your custom content type!') }"></div>

Expected behavior
Preview for custom components should be displayed.

Screenshots
Screenshot 2022-10-24 at 16 05 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions