]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix regression in delete OSD modal 36419/head
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 9 Jul 2020 07:17:37 +0000 (15:17 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Mon, 3 Aug 2020 03:08:18 +0000 (11:08 +0800)
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 <kiefer.chang@suse.com>
Co-authored-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 92f94bd71290d6e2016f56812c417d972cd7b632)

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html

index 55d0e0219360f5e58e6852e6e7b71164aad61c36..fe6f5456fd61990373839c9ba64c0d99e4fb70d0 100644 (file)
@@ -82,8 +82,7 @@
                  class="custom-control-input"
                  name="preserve"
                  id="preserve"
-                 formControlName="preserve"
-                 autofocus>
+                 formControlName="preserve">
           <label class="custom-control-label"
                  for="preserve"
                  i18n>Preserve OSD ID(s) for replacement.</label>