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

The update:model-value event in the InputNumber component isn't working as expected. It only triggers on blur or when pressing Enter, instead of triggering when the value changes. #6241

Closed
ruanpasta opened this issue Aug 16, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ruanpasta
Copy link

ruanpasta commented Aug 16, 2024

Describe the bug

The update:model-value event in the InputNumber component isn't working as expected. It only triggers on blur or when pressing Enter, instead of triggering when the value changes.

When we press TAB the update:model-value is triggered two times.
If we press Enter the update:model-value is triggered too.

Reproducer

https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-6gf5np?file=src%2FApp.vue

PrimeVue version

4.0.4

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

Brave/Edge

Steps to reproduce the behavior

Import and use the InputNumber and try to use the update:model-value event.

Expected behavior

Like the other inputs, I believe the expected behavior is for the update event to trigger each time the input value changes.

@ruanpasta ruanpasta added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 16, 2024
@tugcekucukoglu
Copy link
Member

Reference issue: #506

Closing because it is not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants