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

InputNumber v-model behaves as v-model.lazy (unlike other components) #2250

Closed
sua-dawn opened this issue Mar 2, 2022 · 1 comment
Closed

Comments

@sua-dawn
Copy link

sua-dawn commented Mar 2, 2022

I'm submitting a ...

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

CodeSandbox Case (Bug Reports)
codesandbox.io/...

Current behavior
v-model on InputNumber acts by default as v-model.lazy (it only updates model on blur/enter).
It only emits 'update:modelValue' in the method updateModel(), which is only called in onInputKeyDown() (on enter-key), in spin() (?) and in onInputBlur().
From: https://github.com/primefaces/primevue/blob/master/src/components/inputnumber/InputNumber.vue#L897-L900

Expected behavior
Expected the passed in v-model to update on input, as per default v-model behavior. (like InputText and most other components do)

What is the motivation / use case for changing the behavior?
Aligned v-model behavior across PrimeVue components.

Please tell us about your environment:
MacOS, Yarn, VSCode, Vite

  • Vue version: 3.2.31

  • PrimeVue version: 3.12.1

@tugcekucukoglu
Copy link
Member

Please check this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants