Skip to content

Commit 25f6291

Browse files
committed
Fix include
1 parent 2a78d16 commit 25f6291

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/Compiler.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,6 @@ private function preparePropertiesForInclude(array $variables, bool $isRootNode
465465
$variables[] = new Property($attribute, $value, false);
466466
}
467467

468-
if ($isRootNode) {
469-
$variables[] = new Property('dataScopedStyleAttribute', 'dataScopedStyleAttribute|default(\'\')', false);
470-
}
471-
472468
return $variables;
473469
}
474470

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% include "/templates/ChildComponent.twig" with { 'slot_default': "", 'class': "foo" ~ " " ~ class|default(''), 'style': "color: black" ~ "; " ~ style|default(''), 'dataScopedStyleAttribute': dataScopedStyleAttribute|default('') } %}
1+
{% include "/templates/ChildComponent.twig" with { 'slot_default': "", 'class': "foo" ~ " " ~ class|default(''), 'style': "color: black" ~ "; " ~ style|default('') } %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% set text = text|default('foo') %}
22
{% set slot_default_fallback %}{{ text }}{% endset %}
33
{% set slot_default_value %}{{ slot_default|default(slot_default_fallback) }}{% endset %}
4-
{% include "/templates/ChildComponent.twig" with { 'slot_default': slot_default_value, 'class': "", 'style': "" } %}
4+
{% include "/templates/ChildComponent.twig" with { 'slot_default': slot_default_value, 'class': "" ~ " " ~ class|default(''), 'style': "" ~ "; " ~ style|default('') } %}

0 commit comments

Comments
 (0)