Skip to content

Commit 4c34ba3

Browse files
committed
wip
1 parent 18b155d commit 4c34ba3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

packages/view/src/Parser/TempestViewCompiler.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,14 @@ private function applyAttributes(array $elements): array
145145
$previous = null;
146146

147147
foreach ($elements as $element) {
148-
// TODO
149-
$isDynamicViewComponent = $element instanceof ViewComponentElement && $element->getViewComponent() instanceof DynamicViewComponent;
150-
151-
if (! $isDynamicViewComponent) {
152-
$children = $this->applyAttributes($element->getChildren());
153-
$element->setChildren($children);
154-
}
148+
$children = $this->applyAttributes($element->getChildren());
149+
$element->setChildren($children);
155150

156151
$element->setPrevious($previous);
157152

158153
$shouldBeRemoved = false;
159154

160155
foreach ($element->getAttributes() as $name => $value) {
161-
if ($isDynamicViewComponent && $name !== ':is' && $name !== 'is') {
162-
continue;
163-
}
164-
165156
// TODO: possibly refactor attribute construction to ElementFactory?
166157
if ($value instanceof Attribute) {
167158
$attribute = $value;

0 commit comments

Comments
 (0)