From 0f5891f9e8da03c00d926883f70f054a34eb9df4 Mon Sep 17 00:00:00 2001 From: He4eT Date: Fri, 26 Mar 2021 20:15:34 +0500 Subject: [PATCH] Changing the input type clears the inputbox --- src/components/Player/InputBox.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Player/InputBox.jsx b/src/components/Player/InputBox.jsx index efd0fb0..3e3dba8 100644 --- a/src/components/Player/InputBox.jsx +++ b/src/components/Player/InputBox.jsx @@ -39,6 +39,7 @@ export default function ({ currentWindow, inputType, sendMessage }) { const inputEl = useRef(null) useEffect(() => { + setInputText('') inputEl.current && inputEl.current.focus() }, [inputType])