Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Component does not update DOM on a specific scenario #1737
With the following component I'm trying to apply a transformation to the value in the input. The actual use case is more complicated and makes more sense but this is the simplest repro I could come up with.
It seems to me there is something wrong but please let me know if it's by design, in which case, could you also please explain how to achieve the behavior I want.
I believe this is by design, or at least this is how things are...
If you type the string "asd", the two-way binding mechanism store the uppercase string value "ASD" in the _rawValue variable, and update the value of the text box to the uppercase string value "ASD".
Thanks @enetstudio. That makes sense to me. However, in this case, the end of your sentence should be "...except that there is" :-)
The actual use case is a currency input in which I convert symbols (like £) to ISO codes like GBP. This works beautifully except when you enter "gbp" (which gets transformed into "GBP") and then enter "£" (which doesn't get transformed into anything.
Any ideas on how to force Blazor to re-render the control?