Skip to content

Conversation

altpebush6
Copy link

There was a bug related to the InputNumber field in PrimeVue where, when attempting to delete the entire value using backspace, the field would revert back to its initial value. This issue is also reported in the official repository and can be referenced here: #7562

The problem originates from the formDefaultValue watcher inside the BaseEditableHolder file, where newValue is directly assigned to d_value. This causes the initial value to be automatically rewritten into the input field right after the last character is deleted.

To resolve this issue, I’ve modified the watcher so that d_value is updated with newValue only if the form has not yet been initialized, d_value is not null/undefined/empty, and d_value !== newValue. With this change, the issue no longer occurs.

Since this bug significantly affects our usage in our project, we would greatly appreciate it if this fix could be included in the upcoming Milestone 4.3.5.

@altpebush6 altpebush6 force-pushed the fix/base-editable-holder branch from d2c81b4 to f26d365 Compare May 29, 2025 08:56
@altpebush6 altpebush6 force-pushed the fix/base-editable-holder branch from f26d365 to be47438 Compare May 29, 2025 09:00
@altpebush6
Copy link
Author

@tugcekucukoglu

@mo-masmoudi
Copy link

Hi 👋

Thanks for the fix — this issue is currently blocking us in production.
Do you have any idea when this PR might be merged or included in a release?

Appreciate the great work from the team 🙏

@MelihAltintas
Copy link

MelihAltintas commented Jul 8, 2025

Our entire production setup is also waiting for this merge. :) @mertsincan

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

Successfully merging this pull request may close these issues.

4 participants