Fix default value of search input
This commit is contained in:
parent
47d255a3e8
commit
3f11c40acb
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@
|
|||
(defn search [{:keys [query]}]
|
||||
[:input {:placeholder "Start typing to search…"
|
||||
:type "search"
|
||||
:initial-value query
|
||||
:default-value query
|
||||
:on-change (fn [e]
|
||||
(let [query (.. e -target -value)]
|
||||
(swap! state assoc-in [:section/posts :query] (if (str/blank? query) nil query))))}])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue