fix(compiler): force block for custom dirs and inline beforeUpdate hooks

to ensure they are called before children updates
This commit is contained in:
Evan You
2021-12-10 15:34:23 +08:00
parent 4b5d1ac894
commit 1c9a4810fc
8 changed files with 82 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ import {
TextNode,
hasDynamicKeyVBind,
MERGE_PROPS,
isBindKey,
isStaticArgOf,
createSequenceExpression,
InterpolationNode,
isStaticExp,
@@ -335,7 +335,7 @@ function isTextareaWithValue(
return !!(
node.tag === 'textarea' &&
prop.name === 'bind' &&
isBindKey(prop.arg, 'value')
isStaticArgOf(prop.arg, 'value')
)
}