mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🎉 Add feature to focus input on search when searching a file at projects dashboard
Signed-off-by: Akshay Gupta <gravity.akshay@gmail.com>
This commit is contained in:
parent
70be668c1a
commit
c1187dd457
1 changed files with 6 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
[app.main.data.users :as du]
|
||||
[app.main.features :as features]
|
||||
[app.main.repo :as rp]
|
||||
[app.util.dom :as dom]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[app.util.router :as rt]
|
||||
[app.util.timers :as tm]
|
||||
|
@ -1003,7 +1004,11 @@
|
|||
{:team-id team-id}))
|
||||
(rx/of (rt/nav :dashboard-search
|
||||
{:team-id team-id}
|
||||
{:search-term term}))))))))
|
||||
{:search-term term})))))
|
||||
|
||||
ptk/EffectEvent
|
||||
(effect [_ _ _]
|
||||
(dom/focus! (dom/get-element "search-input"))))))
|
||||
|
||||
(defn go-to-projects
|
||||
([]
|
||||
|
|
Loading…
Reference in a new issue