fix(v-model): fix case where .trim and .number modifiers are used together (#5842)
fix #5839
This commit is contained in:
@@ -122,7 +122,8 @@ export function emit(
|
||||
const { number, trim } = props[modifiersKey] || EMPTY_OBJ
|
||||
if (trim) {
|
||||
args = rawArgs.map(a => a.trim())
|
||||
} else if (number) {
|
||||
}
|
||||
if (number) {
|
||||
args = rawArgs.map(toNumber)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user