-
Notifications
You must be signed in to change notification settings - Fork 1.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
Changes Marked as Pending After User Restores Original Value (updateGroup) #4175
Comments
Hello @marc4F, I've created an internal incident DINC0366784. The status of the issue will be updated here in GitHub. |
Hello @ndeshev. Thanks for updates on the incident! In the meantime, is there a way to retrieve the original value that was initially fetched from the backend before any user modifications? |
Hello @marc4F could you please provide a minimal sample using this template for example, it will help speeding up the processing of the request. |
Please see the attached code. It should be enough to demonstrate the problem. How to Test:
|
Description:
When using an OData V4 model with two-way binding and an
updateGroup
, if a user changes a property and then manually sets it back to its original value,hasPendingChanges()
still returnstrue
. This results in unnecessary backend requests, even though there are no actual modifications left.Steps to Reproduce:
updateGroup
.Input
) to an OData V4 model property using two-way binding."ABC"
) to a new value (e.g.,"DEF"
)."ABC"
).hasPendingChanges()
.Expected Behavior:
hasPendingChanges()
should returnfalse
.Actual Behavior:
hasPendingChanges()
returnstrue
.updateGroup
changes.Impact:
Environment:
Additional Notes:
Requested Fix:
updateGroup
scenarios so that restoring a property to its original value is correctly recognized as no pending change.hasPendingChanges()
accurately reflects actual modifications.The text was updated successfully, but these errors were encountered: