You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Custom components don't have a preview on 2.4.5-p1.
To Reproduce
Steps to reproduce the behavior:
Create a custom component
Go to Admin -> Content -> Blocks
Click on Add New Block
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".
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
The text was updated successfully, but these errors were encountered:
It seems that the issue is coming from app/code/VendorName/MyCustomType/view/adminhtml/web/template/content-type/vendorname-mycustomtype/default/preview.html:2 from the selfclosing tag.
So in order to fix the preview, this: <render args="getOptions().template"/>
Becomes this: <render args="getOptions().template"></render>
Describe the bug
Custom components don't have a preview on 2.4.5-p1.
To Reproduce
Steps to reproduce the behavior:
<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
The text was updated successfully, but these errors were encountered: