From cf56463289b74180f04be81c539ab44912c2ddf0 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 18 Oct 2024 12:11:26 -0400 Subject: [PATCH] Reset the sidebar to "search features" when entering browse mode (closes #1566) --- modules/modes/BrowseMode.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/modes/BrowseMode.js b/modules/modes/BrowseMode.js index c02519dfe..ead7042e1 100644 --- a/modules/modes/BrowseMode.js +++ b/modules/modes/BrowseMode.js @@ -43,6 +43,10 @@ export class BrowseMode extends AbstractMode { context.behaviors.hover .on('hoverchange', this._hover); + // Reset sidebar to show "search features" + const sidebar = context.systems.ui.sidebar; + sidebar.hide(); + // Get focus on the body. // I think this was done to remove focus from whatever // field the user was using in the sidebar/inspector?