Dirty attributes on elements #14593
Closed
jelmer-scoremedia
started this conversation in
General
Replies: 1 comment
-
Correct. It’s not super smart right now, because it would be pretty expensive for fields like Matrix to determine whether something within the value is actually different than the current value. It’s not really an issue when editing elements in the control panel though, because the edit form will only post field values that have changed. So |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Setting field values on element performs the following logic:
According to documentation:
You can tell whether field content has changed by calling isFieldDirty()(opens new window) on the element.
But actually is not true, if you set the same value the property will be marked as dirty while content has not been changed.
Beta Was this translation helpful? Give feedback.
All reactions