Skip to content

Commit 5f538d9

Browse files
committed
internal/static: fix interaction between search bar and maximized plot
If a plot is maximized, minimize it first before handling typing in the search bar.
1 parent 68b46a3 commit 5f538d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/static/src/nav.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ export function initNav(onUpdate) {
9595

9696
// Listen for search input changes
9797
searchInput.addEventListener("input", () => {
98+
// If a plot is maximized, minimize it before applying search input filtering.
99+
plotMgr.plots.forEach((p) => {
100+
if (p.isMaximized()) {
101+
p.minimize();
102+
}
103+
});
98104
updateVisibility();
99105
onUpdate(true);
100106
});

0 commit comments

Comments
 (0)