File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,11 @@ private function handleAttributeBinding(DOMElement $node)
228
228
229
229
foreach ($ items as $ item ) {
230
230
if (preg_match ($ regexObjectElements , $ item , $ matchElement )){
231
- $ dynamicValues [] = sprintf ('{{ %s ? \'%s \' }} ' , $ matchElement ['condition ' ], $ matchElement ['class ' ]);
231
+ $ dynamicValues [] = sprintf (
232
+ '{{ %s ? \'%s \' }} ' ,
233
+ $ this ->builder ->refactorCondition ($ matchElement ['condition ' ]),
234
+ $ matchElement ['class ' ]
235
+ );
232
236
}
233
237
}
234
238
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' }} {{ 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 4
4
<input type =" radio" :checked =" true" >
5
5
<img :src =" imageSrc" >
6
6
<div :class =" ['a', 'b', 'c']" ></div >
7
- <div :class =" { 'block': isSomething, 'block2': isSomething}" class =" category-filter-list categories" ></div >
7
+ <div :class =" { 'block': isSomething, 'block2': ! isSomething}" class =" category-filter-list categories" ></div >
8
8
</div >
9
9
</div >
10
10
</template >
You can’t perform that action at this time.
0 commit comments