From 080a16c104907fc70a75b074cdc757d11dea5b15 Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Thu, 9 Jul 2020 15:17:37 +0800 Subject: [PATCH] mgr/dashboard: fix regression in delete OSD modal MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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) --- .../src/app/ceph/cluster/osd/osd-list/osd-list.component.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 55d0e0219360f..fe6f5456fd619 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"> -- 2.39.5