mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-18 14:11:22 +00:00
fix custom search input not being focussed after clicking
This commit is contained in:
parent
11eae40857
commit
c5fec9cbd1
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
Added:
|
Added:
|
||||||
- Ability to hide premium features in addition to ads
|
- Ability to hide premium features in addition to ads
|
||||||
|
|
||||||
|
Fixed:
|
||||||
|
- Custom search input not being focussed after clicking
|
||||||
|
|
||||||
Improved:
|
Improved:
|
||||||
- Add `embedWidgetGenerator` modals to custom modal styles. (Things like the [spicetify-marketplace](https://github.com/CharlieS1103/spicetify-marketplace) options)
|
- Add `embedWidgetGenerator` modals to custom modal styles. (Things like the [spicetify-marketplace](https://github.com/CharlieS1103/spicetify-marketplace) options)
|
||||||
|
|
@ -76,7 +76,7 @@ Dribbblish.on("ready", () => {
|
||||||
input.setAttribute("spellcheck", "false");
|
input.setAttribute("spellcheck", "false");
|
||||||
input.addEventListener("click", (e) => {
|
input.addEventListener("click", (e) => {
|
||||||
if (!Spicetify.Platform.History.location.pathname.startsWith("/search")) Spicetify.Platform.History.push(`/search/${input.value}`);
|
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();
|
input.focus();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue