Skip to content

fix (runtime-core): Was returning "" instead null when use v-model.number #8215

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leonardorafael
Copy link

Close #8214

@@ -144,6 +144,7 @@ export const def = (obj: object, key: string | symbol, value: any) => {
* This is used for the .number modifier in v-model
*/
export const looseToNumber = (val: any): any => {
if (val === '') return null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change.

@leonardorafael
Copy link
Author

Any updates about this issue guys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting
Development

Successfully merging this pull request may close these issues.

Returning "" instead null when use v-model.number
2 participants