Subscribe on changes!

Trim and number modifiers exist in V-model at the same time, and the number modifier does not take effect

avatar
May 1st 2022

Version

3.2.33

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Both trim and number modifiers exist in V-model

What is expected?

number and trim modifiers exist at the same time, and number does take effect.

What is actually happening?

number and trim modifiers exist at the same time, and number does not take effect.


In runtime-dom/directives/vModel.ts, If the trim modifier exists, the number modifier does not take effect. Is there any reason for this? image

avatar
May 1st 2022
avatar
May 1st 2022

Fix example

Know how to solve it. There's no need for the official to raise the pull request without giving the result