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: v15.2.5~81^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36419%2Fhead;p=ceph.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 (cherry picked from commit 92f94bd71290d6e2016f56812c417d972cd7b632) --- 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 55d0e0219360..fe6f5456fd61 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 @@ -82,8 +82,7 @@ class="custom-control-input" name="preserve" id="preserve" - formControlName="preserve" - autofocus> + formControlName="preserve">