diff --git a/chrome/content/zotero/integration/citationDialog.js b/chrome/content/zotero/integration/citationDialog.js index 3772bb3ea5..fdf31000bc 100644 --- a/chrome/content/zotero/integration/citationDialog.js +++ b/chrome/content/zotero/integration/citationDialog.js @@ -1627,17 +1627,16 @@ class ListLayout extends Layout { ignoreWindowResizing = true; // Timeout is required likely to allow minHeight update to settle - setTimeout(() => { - Helpers.smoothResize(targetWidth, autoHeight, { - onComplete: () => { - if (!_id("citationDialog-list-table")?.contains(doc.activeElement)) { - _id("bubble-input").refocusInput(); - } - document.documentElement.setAttribute("dialog-layout", this.type); - ignoreWindowResizing = false; - }, - }); - }, 10); + await Zotero.Promise.delay(10); + Helpers.smoothResize(targetWidth, autoHeight, { + onComplete: () => { + if (!_id("citationDialog-list-table")?.contains(doc.activeElement)) { + _id("bubble-input").refocusInput(); + } + document.documentElement.setAttribute("dialog-layout", this.type); + ignoreWindowResizing = false; + }, + }); } }