mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
Changing the input type clears the inputbox
This commit is contained in:
parent
2edea5ad79
commit
0f5891f9e8
1 changed files with 1 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ export default function ({ currentWindow, inputType, sendMessage }) {
|
||||||
const inputEl = useRef(null)
|
const inputEl = useRef(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setInputText('')
|
||||||
inputEl.current && inputEl.current.focus()
|
inputEl.current && inputEl.current.focus()
|
||||||
}, [inputType])
|
}, [inputType])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue