Skip to content

Commit

Permalink
Fix regression with body-only-if and control flow attribute (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jun 15, 2019
1 parent a5778de commit 81612e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core-tags/migrate/all-tags/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const commonMigrators = [
require("./body-only-if"),
require("./control-flow-directives"),
require("./body-only-if"),
require("./dynamic-attributes"),
require("./include-directive"),
require("./legacy-nested-tag"),
Expand Down
3 changes: 3 additions & 0 deletions test/migrate/fixtures/body-only-if/snapshot-expected.marko
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

<div>
<${input.test ? null : "span"}>Blah</>
<if(input.shouldShow)>
<${input.test ? null : "span"}>Blah</>
</if>
</div>
4 changes: 4 additions & 0 deletions test/migrate/fixtures/body-only-if/template.marko
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
<span body-only-if(input.test)>
Blah
</span>

<span if(input.shouldShow) body-only-if(input.test)>
Blah
</span>
</div>

0 comments on commit 81612e5

Please sign in to comment.