0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -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:
Akshay Gupta 2023-05-08 02:03:00 +05:30 committed by Alejandro Alonso
parent 70be668c1a
commit c1187dd457

View file

@ -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
([]