Changing the input type clears the inputbox

This commit is contained in:
He4eT 2021-03-26 20:15:34 +05:00
commit 0f5891f9e8

View file

@ -39,6 +39,7 @@ export default function ({ currentWindow, inputType, sendMessage }) {
const inputEl = useRef(null)
useEffect(() => {
setInputText('')
inputEl.current && inputEl.current.focus()
}, [inputType])