0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

Merge branch 'akshay-gupta7-akshayg7-focus-input-search-from-dashboard' into develop

This commit is contained in:
Alejandro Alonso 2023-05-08 06:15:04 +02:00
commit 6bad9ac629

View file

@ -1000,8 +1000,10 @@
(watch [_ state _]
(let [team-id (:current-team-id state)]
(if (empty? term)
(rx/of (rt/nav :dashboard-search
{:team-id team-id}))
(do
(dom/focus! (dom/get-element "search-input"))
(rx/of (rt/nav :dashboard-search
{:team-id team-id})))
(rx/of (rt/nav :dashboard-search
{:team-id team-id}
{:search-term term})))))