aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-10-16 00:19:37 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-10-16 00:19:37 +0200
commitd697dedf1c503cb051abf36936f68fcbe937e8eb (patch)
treed078489c42fb1c99963373d44720b3ac1cd419b2 /src
parent0138806bd85f8b23d4b8230b16b62d7be20efb1c (diff)
fix: fix controlled input for global search
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/views.cljs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/tubo/views.cljs b/src/frontend/tubo/views.cljs
index e3cb0ae..643a9f2 100644
--- a/src/frontend/tubo/views.cljs
+++ b/src/frontend/tubo/views.cljs
@@ -39,7 +39,7 @@
[:div
[:input.bg-transparent.text-white.border-none.rounded.py-2.px-1.focus:ring-transparent.placeholder-white.box-border.w-40.xs:w-auto
{:type "text"
- :value global-search
+ :default-value global-search
:on-change #(rf/dispatch [::events/change-global-search (.. % -target -value)])
:placeholder "Search for something"}]]
[:div.flex.items-center.px-2