mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +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)
|
||||
|
||||
useEffect(() => {
|
||||
setInputText('')
|
||||
inputEl.current && inputEl.current.focus()
|
||||
}, [inputType])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue