From: Kiefer Chang Date: Thu, 9 Jul 2020 07:17:37 +0000 (+0800) Subject: mgr/dashboard: fix regression in delete OSD modal X-Git-Tag: wip-pdonnell-testing-20200918.022351~637^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=92f94bd71290d6e2016f56812c417d972cd7b632;p=ceph-ci.git mgr/dashboard: fix regression in delete OSD modal The autofocus attribute of `preserve` input makes the form become touched after the view is loaded. Removing it to avoid ExpressionChangedAfterItHasBeenCheckedError. Fixes: https://tracker.ceph.com/issues/46413 Signed-off-by: Kiefer Chang Co-authored-by: Stephan Müller --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html index 0e74f583005..81e1890e7a3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html @@ -91,8 +91,7 @@ class="custom-control-input" name="preserve" id="preserve" - formControlName="preserve" - autofocus> + formControlName="preserve">