Skip to content

Commit

Permalink
fix: if directive on else tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Aug 19, 2023
1 parent 1c3b9f9 commit 85f920c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/plenty-lobsters-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@marko/compat-v4": patch
"marko-widgets": patch
---

Fix issue where the if directive was not removed from an else tag.
1 change: 1 addition & 0 deletions packages/compat-v4/src/migrate/if-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
fix() {
tag.node.arguments = args;
tag.node.name = t.stringLiteral("else-if");
attr.remove();
},
});
return;
Expand Down

0 comments on commit 85f920c

Please sign in to comment.