field view: fromField handling

This commit is contained in:
Yuri Kuznetsov
2025-05-28 12:00:59 +03:00
parent 0b6fd83b14
commit 162e05449c
+2 -1
View File
@@ -875,7 +875,7 @@ class BaseFieldView extends View {
this.attributeList = this.getAttributeList(); // for backward compatibility, to be removed
this.listenTo(this.model, 'change', (model, options) => {
if (options.ui) {
if (options.ui && (!options.fromField || options.fromField === this.name)) {
return;
}
@@ -950,6 +950,7 @@ class BaseFieldView extends View {
this.model.set(attributes, {
ui: true,
fromView: this,
fromField: this.name,
action: 'ui',
});
});