Skip to content

Commit 371b98a

Browse files
committed
cleared search bar after adding song
1 parent 788409e commit 371b98a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/session/[id]/client.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,7 @@ function Queue({isHost, initQueue, socket, username, sid
455455
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setSongInput(e.target.value)}
456456
onKeyUp={(e: React.KeyboardEvent<HTMLInputElement>) => {
457457
clearTimeout(timer);
458-
const inputValue = e.currentTarget.value; // capture value before timeout
459-
458+
const inputValue = e.currentTarget.value;
460459
timer = setTimeout(() => {
461460
searchSongs(inputValue);
462461
}, waitTime);

0 commit comments

Comments
 (0)