Skip to content

Commit

Permalink
Reset the sidebar to "search features" when entering browse mode
Browse files Browse the repository at this point in the history
(closes #1566)
  • Loading branch information
bhousel committed Oct 18, 2024
1 parent 84bd664 commit cf56463
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/modes/BrowseMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit cf56463

Please sign in to comment.