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:
commit
6bad9ac629
1 changed files with 4 additions and 2 deletions
|
@ -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})))))
|
||||
|
|
Loading…
Reference in a new issue