-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug] Value of the input is not updated if the it was previously updated with the same string (regression starting 3.22) #19341
[Bug] Value of the input is not updated if the it was previously updated with the same string (regression starting 3.22) #19341
Comments
@pzuraq any ideas on this one? |
I haven't had time to start digging into this one unfortunately. Will update when I do have a chance, hopefully in the next few weeks. |
Tested it with ember-source 3.25.1, it is still an issue there. |
I've hit this scenario as well I think. I am coming from Ember v3.20 -> v3.24. Use case seems similar of author's. I have tracked object, which follows immutability pattern like so:
And in template I have:
Previously whenever This however no longer holds true. User story example:
Edit 1: I found one other test case I have following immutability pattern and it fails to trigger |
@raido can you add a failing test like @andreyfel's that demonstrates your variant of the issue? It would be helpful to make sure I have the details right when debugging |
@pzuraq This should be as close to my problem as I could get it - raido/tracked-failures@f460f34 Once you switch ember-source to v3.20.0 tests will pass. |
Might be. I'll try to verify. It seems my reproduction has 2 different issues, one related to this issue about input.value and other for did-update behaviour. |
@pzuraq I left comment on reproduction to avoid missing context around discussion - raido/tracked-failures@f460f34#commitcomment-47078125 |
Reopening until the rendering engine is updated here. |
🐞 Describe the Bug
Let's say you have a native input with a value bound: .
foo
, the input getsfoo
as a value.bar
.myValue
tofoo
.foo
, but it remainsbar
.🔬 Minimal Reproduction
Here is an integration test which reproduces the issue:
It passes for 3.21.3 and fails in 3.22.0. It fails in 3.24.1 as well.
➕ Additional Context
The use case for that is an input which is used as a parser, user inputs something hits TAB, the parser interprets the input and updates the string. If the results of 2 consecutive parses are the same then the user ends up with the string he filled in, not the parsed one.
The text was updated successfully, but these errors were encountered: