mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
Change placeholder according InputType
This commit is contained in:
parent
a36c36789d
commit
a16e38eca8
1 changed files with 9 additions and 2 deletions
|
|
@ -69,12 +69,19 @@ export default function ({ currentWindow, inputType, sendMessage }) {
|
|||
}
|
||||
}
|
||||
|
||||
const placeholder = {
|
||||
char: 'Press any key',
|
||||
line: ' > '
|
||||
}
|
||||
|
||||
return (
|
||||
<input {...inputHandlers[inputType]}
|
||||
className='inputBox'
|
||||
ref={inputEl}
|
||||
value={inputText}
|
||||
autofocus={true}
|
||||
onInput={({ target: {value}}) => setInputText(value)}
|
||||
placeholder={placeholder[inputType]}
|
||||
autofocus
|
||||
onInput={({ target: { value } }) => setInputText(value)}
|
||||
type='text' />
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue