mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-19 04:08:53 +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:
|
||||
- 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)
|
||||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue