From a9d30b7e8a03a91e793480252dfa0a61efae4c29 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 4 Jan 2024 10:34:33 -0800 Subject: [PATCH] Fix static height remaining after _runWithTransitionsDisabled() --- chrome/content/zotero/elements/collapsibleSection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/elements/collapsibleSection.js b/chrome/content/zotero/elements/collapsibleSection.js index 5a36ce33c9..55e9ba1438 100644 --- a/chrome/content/zotero/elements/collapsibleSection.js +++ b/chrome/content/zotero/elements/collapsibleSection.js @@ -257,6 +257,9 @@ // Need to wait a tick before re-enabling - forcing style recalculation isn't enough here requestAnimationFrame(() => { this.classList.remove('disable-transitions'); + // --open-height is usually cleared when the animation ends, but we had animations disabled. + // Clear it manually. + this.style.setProperty('--open-height', 'auto'); }); }