]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
window: ldap auth edit: set view-model form data explicitly on edit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 Mar 2023 15:47:34 +0000 (17:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 Mar 2023 15:49:17 +0000 (17:49 +0200)
commit4d3a18dfc3a37520f0eb82fec120fcc0da625583
tree2e338fc47c413401a13cabae5af6b9c1ae7cdefe
parent58bff886fb8d54072f2c0b84c0e9a575b0743a45
window: ldap auth edit: set view-model form data explicitly on edit

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>
src/window/AuthEditLDAP.js