mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
default props added to text input
This commit is contained in:
parent
278b58a041
commit
31fec02da9
2 changed files with 7 additions and 6 deletions
|
|
@ -44,14 +44,10 @@ const SearchBar = ({ className }) => {
|
|||
key={query}
|
||||
ref={searchInputRef}
|
||||
className={styles['search-input']}
|
||||
defaultValue={query}
|
||||
tabIndex={-1}
|
||||
size={1}
|
||||
type={'text'}
|
||||
placeholder={'Search'}
|
||||
autoCorrect={'off'}
|
||||
autoCapitalize={'off'}
|
||||
spellCheck={false}
|
||||
defaultValue={query}
|
||||
tabIndex={-1}
|
||||
onSubmit={queryInputOnSubmit}
|
||||
/>
|
||||
:
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@ const TextInput = React.forwardRef((props, ref) => {
|
|||
}, [props.onKeyUp, props.onSubmit]);
|
||||
return (
|
||||
<input
|
||||
size={1}
|
||||
autoCorrect={'off'}
|
||||
autoCapitalize={'off'}
|
||||
autoComplete={'off'}
|
||||
spellCheck={false}
|
||||
tabIndex={focusable && !props.disabled ? 0 : -1}
|
||||
{...props}
|
||||
ref={ref}
|
||||
|
|
|
|||
Loading…
Reference in a new issue