@@ -41,7 +41,7 @@ export const transformModel: DirectiveTransform = (dir, node, context) => {
|
||||
bindingType &&
|
||||
bindingType !== BindingTypes.SETUP_CONST
|
||||
|
||||
if (!isMemberExpression(expString) && !maybeRef) {
|
||||
if (!expString.trim() || (!isMemberExpression(expString) && !maybeRef)) {
|
||||
context.onError(
|
||||
createCompilerError(ErrorCodes.X_V_MODEL_MALFORMED_EXPRESSION, exp.loc)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user