Fixing app store search input (#5960)

pull/5952/head
Leo Giovanetti 2022-12-09 14:10:54 -03:00 committed by GitHub
parent fbc2708259
commit ee39ea316f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -127,14 +127,6 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function
id={id}
type={type}
placeholder={placeholder}
{...passThrough}
{...(type == "search" && {
onChange: (e) => {
setInputValue(e.target.value);
props.onChange && props.onChange(e);
},
value: inputValue,
})}
isFullWidth={inputIsFullWidth}
className={classNames(
className,
@ -144,6 +136,14 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function
"!my-0 !ring-0"
)}
{...passThrough}
{...(type == "search" && {
onChange: (e) => {
console.log(e.target.value);
setInputValue(e.target.value);
props.onChange && props.onChange(e);
},
value: inputValue,
})}
readOnly={readOnly}
ref={ref}
/>