Skip to content

Commit

Permalink
[@mantine/core] PasswordInput: Fix withErrorStyles prop being passe…
Browse files Browse the repository at this point in the history
…d to the DOM element (#6348)
  • Loading branch information
rtivital committed Jun 13, 2024
1 parent 6c523b8 commit dd3c852
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ export default { title: 'PasswordInput' };
export function Usage() {
return (
<div data-disabled>
<PasswordInput placeholder="Your password" label="Your password" />
<PasswordInput
placeholder="Your password"
label="Your password"
error="test error"
withErrorStyles={false}
/>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const PasswordInput = factory<PasswordInputFactory>((_props, ref) => {
rightSectionProps,
leftSectionProps,
leftSectionPointerEvents,
withErrorStyles,
mod,
...others
} = props;
Expand Down Expand Up @@ -215,6 +216,7 @@ export const PasswordInput = factory<PasswordInputFactory>((_props, ref) => {
leftSectionProps={leftSectionProps}
leftSectionPointerEvents={leftSectionPointerEvents}
withAria={false}
withErrorStyles={withErrorStyles}
>
<input
required={required}
Expand Down

0 comments on commit dd3c852

Please sign in to comment.