Skip to content

Commit

Permalink
fix: added browser default to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus committed Oct 11, 2023
1 parent 77b7def commit 9f89baa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/PasswordInput/PasswordInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ $block: '.#{variables.$ns}password-input';
&__button {
--yc-button-background-color-hover: transparent;
}

&__input {
::-ms-reveal {
display: none;
}
}
}
4 changes: 3 additions & 1 deletion src/components/PasswordInput/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export type PasswordInputProps = Required<Pick<TextInputProps, 'onUpdate' | 'val
};

export const PasswordInput: React.FC<PasswordInputProps> = (props) => {
const {autoComplete, value, showCopyButton, rightContent, showVisibilityButton} = props;
const {autoComplete, value, showCopyButton, rightContent, showVisibilityButton, className} =
props;

const [hideValue, setHideValue] = React.useState(true);

Expand Down Expand Up @@ -75,6 +76,7 @@ export const PasswordInput: React.FC<PasswordInputProps> = (props) => {
type={hideValue ? 'password' : 'text'}
rightContent={additionalRightContent}
autoComplete={autoComplete ? autoComplete : 'new-password'}
className={b('input', className)}
/>
);
};

0 comments on commit 9f89baa

Please sign in to comment.