Skip to content

Commit 5add641

Browse files
author
Hwashiang Yu
committed
MC-13770: WidgetInitializerConfig only supports <div ></div> elements
- Removed div from widget initializer configuration model
1 parent de61a63 commit 5add641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Model/WidgetInitializerConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getConfig(): array
3535
{
3636
$resultConfig = [];
3737
foreach ($this->config as $contentTypeName => $config) {
38-
$selector = sprintf('div[data-role="%s"]', $contentTypeName);
38+
$selector = sprintf('[data-role="%s"]', $contentTypeName);
3939
foreach ($config as $item) {
4040
if (!isset($item['component'])) {
4141
continue;

0 commit comments

Comments
 (0)