Skip to content

Commit e547001

Browse files
committed
First tag match was never used
1 parent a2e96d8 commit e547001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Observer/AddHtmlAttributesToComponentBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function getHtmlAttributes(ComponentInterface $component, string $curren
8686
return $currentHtml;
8787
}
8888

89-
$firstTagHtml = $currentHtml[0];
89+
$firstTagHtml = $match[0];
9090

9191
$attributes = (array)$block->getData('html_attributes');
9292
$attributes['id'] = $this->getElementId($block);

0 commit comments

Comments
 (0)