Skip to content

Value displayed on input only changes in "onChangeEvent" #37

Closed

Description

@guilherme-dsveiga

Not really sure if the tittle helps, but the issue that i've encountered is the following:

Let's say that values starts off as the integer 2.
Then, after a request is made to the backend, we set value to 4
The displayed value on the input won't change even though "value" is now 4.

I assume this has something to do with how the component refreshes "maskedValue". Maybe it only changes inside the "onChangeEvent"?

In my case, I was able to find a quick-fix because my "value" starts off as undefined, so I only render the component when "value" is not undefined, but this need to be fixed.

Activity

  1. ericblade commented on Jul 19, 2024

    @ericblade
    Owner

    Thanks for reporting this. Do you have an example that demonstrates it?

  2. ericblade commented on Jun 3, 2026

    @ericblade
    Owner

    By my understanding, I believe that this is already fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions