Skip to content

Commit d3af67e

Browse files
authored
fix(compiler-core): transform empty v-bind dynamic argument content correctly (#12554)
1 parent e0e8221 commit d3af67e

File tree

1 file changed

+1
-1
lines changed
  • packages/compiler-core/src/transforms

1 file changed

+1
-1
lines changed

packages/compiler-core/src/transforms/vBind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
6565
arg.children.unshift(`(`)
6666
arg.children.push(`) || ""`)
6767
} else if (!arg.isStatic) {
68-
arg.content = `${arg.content} || ""`
68+
arg.content = arg.content ? `${arg.content} || ""` : `""`
6969
}
7070

7171
// .sync is replaced by v-model:arg

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy