mirror of https://github.com/vuejs/core.git
fix(compiler-core): transform empty `v-bind` dynamic argument content correctly (#12554)
This commit is contained in:
parent
e0e8221d7f
commit
d3af67e878
|
@ -65,7 +65,7 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
|
|||
arg.children.unshift(`(`)
|
||||
arg.children.push(`) || ""`)
|
||||
} else if (!arg.isStatic) {
|
||||
arg.content = `${arg.content} || ""`
|
||||
arg.content = arg.content ? `${arg.content} || ""` : `""`
|
||||
}
|
||||
|
||||
// .sync is replaced by v-model:arg
|
||||
|
|
Loading…
Reference in New Issue