Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hchlq opened this issue May 1, 2022 · 2 comments · Fixed by #5842
Labels
✨ feature request New feature or request

Comments

@hchlq
Copy link
Contributor

hchlq commented May 1, 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

@liulinboyi
Copy link
Member

Fix example

@hchlq
Copy link
Contributor Author

hchlq commented May 1, 2022

Fix example

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✨ feature request New feature or request
Projects
None yet
3 participants