Skip to content

Commit

Permalink
FIX: Force search menu to always be displayed as a dropdown (#49)
Browse files Browse the repository at this point in the history
Raised in https://meta.discourse.org/t/search-banner/122939/109?u=isaac

> a dark overlay comes over the entire site page and i’m unable to navigate the site

Force the search menu to always render as a dropdown and don't apply the `slide out` styling (dark overlay).

# Before

https://github.com/discourse/discourse-search-banner/assets/50783505/17a5009b-d0c5-40c8-95a5-b00a0685970c


# After

https://github.com/discourse/discourse-search-banner/assets/50783505/4962728f-759b-41bc-af49-6bdc5fe209f7
  • Loading branch information
janzenisaac authored Jan 8, 2024
1 parent 934e0d3 commit 1c9b0b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascripts/discourse/api-initializers/init-search-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ export default apiInitializer("1.14.0", (api) => {
: "below-site-header",
SearchBanner
);

api.forceDropdownForMenuPanels("search-menu-panel");
});

0 comments on commit 1c9b0b0

Please sign in to comment.