You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is described as follows: If I set size="xl" in the TextInput component and give the object {size : "xs"} as errorProps for the same component, the error size stays unchanged.
What version of @mantine/hooks page do you have in package.json?
5.5.0
If possible, please include a link to a codesandbox with the reproduced problem
What package has an issue
@mantine/core
Describe the bug
The bug is described as follows: If I set
size="xl"
in theTextInput
component and give the object{size : "xs"}
aserrorProps
for the same component, the error size stays unchanged.What version of @mantine/hooks page do you have in package.json?
5.5.0
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/black-wood-y55brg
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
Change line 143 in
InputWrapper.tsx
Because the way the props are ordered is wrong the shared props will always overwrite the error props
The text was updated successfully, but these errors were encountered: