From 1006112acb3204ff016407978b29ad9839d49921 Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Wed, 15 May 2024 04:54:09 +0100 Subject: [PATCH] Submit form when `enter` key is clicked --- client/src/components/Form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Form.js b/client/src/components/Form.js index 53ce522..14bcc63 100644 --- a/client/src/components/Form.js +++ b/client/src/components/Form.js @@ -36,7 +36,7 @@ const Form = ({ socket }) => { const { spotifyUrl } = formState; return ( -
+
Add songs to the server
{ onChange={handleChange} />
- +
); };