From d697dedf1c503cb051abf36936f68fcbe937e8eb Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 16 Oct 2023 00:19:37 +0200 Subject: fix: fix controlled input for global search --- src/frontend/tubo/views.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3