Skip to content

Commit

Permalink
fix(language-core): should exit incremental update when binding expre…
Browse files Browse the repository at this point in the history
…ssion is empty
  • Loading branch information
KazariEX committed Nov 2, 2024
1 parent f275c2a commit a7d6f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/language-core/lib/plugins/vue-template-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ const plugin: VueLanguagePlugin = ({ modules }) => {
if (node.isStatic) {
return false;
}
else if (!node.loc.source) {
// :class="..." -> :class=""
return false;
}
else {
node.content = node.loc.source;
}
Expand Down

0 comments on commit a7d6f68

Please sign in to comment.