diff --git a/CHANGELOG.md b/CHANGELOG.md index 804b680..852801b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ Added: - Ability to hide premium features in addition to ads +Fixed: +- Custom search input not being focussed after clicking + Improved: - Add `embedWidgetGenerator` modals to custom modal styles. (Things like the [spicetify-marketplace](https://github.com/CharlieS1103/spicetify-marketplace) options) \ No newline at end of file diff --git a/src/js/main.js b/src/js/main.js index 2fb9ec9..663cf0f 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -76,7 +76,7 @@ Dribbblish.on("ready", () => { input.setAttribute("spellcheck", "false"); input.addEventListener("click", (e) => { if (!Spicetify.Platform.History.location.pathname.startsWith("/search")) Spicetify.Platform.History.push(`/search/${input.value}`); - waitForElement([`[data-testid="search-input"]`], ([defaultSearch]) => { + waitForElement([`.main-topBar-topbarContent form[role="search"]`], ([defaultSearch]) => { input.focus(); }); });