Fix a race that shows up in chrome/chromium by setting the data in
the view-model that is binded to form fields explicitly on edit, this
avoids a race where the default declared in the viewModel data got
applied after the form data was set, thus having the state out of
sync and so marking the field potentially as dirty even if it wasn't.
Reported-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
},
onSetValues: function(values) {
+ let me = this;
values.anonymous_search = values["bind-dn"] ? 0 : 1;
+ me.getViewModel().set('anonymous_search', values.anonymous_search);
return values;
},