-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #1989 fix null props not overwrite parent context (WebMamba)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- fix null props not overwrite parent context | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | Fix #1970 | License | MIT So weird! The code was there but at the wrong place! Commits ------- 084e5d3 fix null props not overwrite parent context
- Loading branch information
Showing
5 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...tests/Fixtures/templates/anonymous_component_with_props_overwrite_parents_props.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<twig:Alert size='md'> | ||
<twig:Icon/> | ||
</twig:Alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/TwigComponent/tests/Fixtures/templates/components/Icon.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% props size = null %} | ||
|
||
<p>I am an icon</p> | ||
{% if size is not null %} | ||
<p>I am {{ size }}</p> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters