From 3d6fd001cb3ea0cee80115ec7bafc478cd1ccc8d Mon Sep 17 00:00:00 2001 From: AG Date: Sat, 29 Nov 2025 19:35:39 +0200 Subject: [PATCH] Clear Select Exercise field onFocus --- components/Tracker/ActiveSessionView.tsx | 5 ++++- components/Tracker/SporadicView.tsx | 5 ++++- server/prisma/dev.db | Bin 102400 -> 102400 bytes 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/components/Tracker/ActiveSessionView.tsx b/components/Tracker/ActiveSessionView.tsx index 40ce102..9f7d0c8 100644 --- a/components/Tracker/ActiveSessionView.tsx +++ b/components/Tracker/ActiveSessionView.tsx @@ -186,7 +186,10 @@ const ActiveSessionView: React.FC = ({ tracker, activeSe setSearchQuery(e.target.value); setShowSuggestions(true); }} - onFocus={() => setShowSuggestions(true)} + onFocus={() => { + setSearchQuery(''); + setShowSuggestions(true); + }} onBlur={() => setTimeout(() => setShowSuggestions(false), 100)} // Delay hiding to allow click icon={} autoComplete="off" diff --git a/components/Tracker/SporadicView.tsx b/components/Tracker/SporadicView.tsx index b0145c3..abf8ece 100644 --- a/components/Tracker/SporadicView.tsx +++ b/components/Tracker/SporadicView.tsx @@ -80,7 +80,10 @@ const SporadicView: React.FC = ({ tracker, lang }) => { setSearchQuery(e.target.value); setShowSuggestions(true); }} - onFocus={() => setShowSuggestions(true)} + onFocus={() => { + setSearchQuery(''); + setShowSuggestions(true); + }} onBlur={() => setTimeout(() => setShowSuggestions(false), 100)} icon={} autoComplete="off" diff --git a/server/prisma/dev.db b/server/prisma/dev.db index b1174a0d932ce38628781fd04cd12240fd1e510d..fc734bdd7b4f2659a8597789290ae0592095a22e 100644 GIT binary patch delta 798 zcma))J8Km|9K~n$k?g%(b`rFTLM&EH!12y|cRNAsA_%frSm?~`-pW1_2#HNnSom1v zf{h7+VB{k1=`nF??8L>+InQQIQarWjU8U-i?Xdk8NO1k2_hADX# z4Xdhx{6DO@UL zvEa4DhDd>xY?zRSa#LG>L;L%0#)8pi;6n#ps4lHlIn&s3Cb7`&<<2OuG84&a%}OEa z_MwyhaiQ@h^va}D5=(6^O@Ups3oRRkwP#w8dSW;svN57l-hH1fCqu^}Kr?{m9%P5| z9@_CJ`_%RnxB9dUyjQFu)hC$zxRG`G_yxD`}P2L?ha3J=jrMpE6t(3*sHc6ZNGM0 z>?pN`FhVF@FTKfQ4SV}|`abV}U$~}dL53iM+zi}9nk`St$0g;M)_MiQ7{M5JO=Q94 zz;cyRPC;@wmxB9@5yqmBupsh@jC+DGL4}aM?6T006A|fN*d>V+K4H4AiC}(A5|*$g zPXy&UNJD&0uKbaMFlk0TtqnPd35%#CLTX7U<($#L5JXsbq(7hD&UPVyAxDt^ z3!K+W3U6|qRakDa?73