You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new state property for ActiveRecord like originalValues called modifiedValues, but that gets cleared upon success save
Replace the use of originalValues with modifiedValues in isFieldDirty
Store the contents of modifiedValues into a function-scope variable at the top of save, and pass it to the afterRecordSave event (since it won't be available within the model instance anymore at that point)
The text was updated successfully, but these errors were encountered:
originalValues
calledmodifiedValues
, but that gets cleared upon success saveoriginalValues
withmodifiedValues
inisFieldDirty
modifiedValues
into a function-scope variable at the top ofsave
, and pass it to theafterRecordSave
event (since it won't be available within the model instance anymore at that point)The text was updated successfully, but these errors were encountered: