Skip to content

Commit

Permalink
Don't replace the save-success screen until the user selects something
Browse files Browse the repository at this point in the history
(re: #700, probably 0c196c3)
  • Loading branch information
bhousel committed Dec 23, 2024
1 parent e42224e commit 95f7965
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/modes/BrowseMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ export class BrowseMode extends AbstractMode {
.on('hoverchange', this._hover);

// Reset sidebar to show "search features"
// Exception: don't replace the "save-success" screen.
// Wait for the user to dismiss it or select something else. Rapid#700
const Sidebar = context.systems.ui.Sidebar;
Sidebar.hide();
const didJustSave = (Sidebar.$custom && Sidebar.$custom.selectAll('.save-success').size());
if (!didJustSave) {
Sidebar.hide();
}

// Get focus on the body.
// I think this was done to remove focus from whatever
Expand Down

0 comments on commit 95f7965

Please sign in to comment.