File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ public function convert(): string
83
83
{
84
84
$ templateElement = $ this ->document ->getElementsByTagName ('template ' )->item (0 );
85
85
$ scriptElement = $ this ->document ->getElementsByTagName ('script ' )->item (0 );
86
+
87
+ /** @var \DOMNodeList $twigBlocks */
86
88
$ twigBlocks = $ this ->document ->getElementsByTagName ('twig ' );
87
89
88
90
if ($ scriptElement ) {
@@ -340,7 +342,7 @@ private function handleAttributeBinding(DOMElement $node)
340
342
$ dynamicValues [] = sprintf (
341
343
'{{ %s ? \'%s \' }} ' ,
342
344
$ this ->builder ->refactorCondition ($ matchElement ['condition ' ]),
343
- $ matchElement ['class ' ]
345
+ $ matchElement ['class ' ] . ' '
344
346
);
345
347
}
346
348
}
Original file line number Diff line number Diff line change 3
3
<input type =" radio" checked >
4
4
<img src =" {{imageSrc }}" >
5
5
<div class =" a b c" ></div >
6
- <div class =" category-filter-list categories {{ isSomething ? ' block' }} {{ not isSomething ? ' block2' }}" ></div >
6
+ <div class =" category-filter-list categories {{ isSomething ? ' block ' }} {{ not isSomething ? ' block2 ' }}" ></div >
7
7
</div >
8
8
</div >
Original file line number Diff line number Diff line change 2
2
<div class =" static1 static2 dynamic dynamic--{{ modifier }}" >
3
3
Hello World
4
4
</div >
5
+ <div class =" static1 static2 {{ true ? ' my-class ' }}" >
6
+ With Object Binding
7
+ </div >
5
8
</div >
Original file line number Diff line number Diff line change 3
3
<div :class =" `dynamic dynamic--${modifier}`" class =" static1 static2" >
4
4
Hello World
5
5
</div >
6
+ <div :class =" { 'my-class': true }" class =" static1 static2" >
7
+ With Object Binding
8
+ </div >
6
9
</div >
7
10
</template >
8
11
You can’t perform that action at this time.
0 commit comments