fix(lsd-react): prevent overriding of className in TextField component

This commit is contained in:
Hossein Mehrabi 2023-02-27 13:51:55 +03:30
parent b865ef30e8
commit 24b67d5d98
1 changed files with 1 additions and 1 deletions

View File

@ -50,6 +50,7 @@ export const TextField: React.FC<TextFieldProps> & {
return (
<div
aria-disabled={disabled ? 'true' : 'false'}
{...props}
className={clsx(
props.className,
textFieldClasses.root,
@ -57,7 +58,6 @@ export const TextField: React.FC<TextFieldProps> & {
disabled && textFieldClasses.disabled,
error && textFieldClasses.error,
)}
{...props}
>
<div className={textFieldClasses.inputContainer}>
<input