mirror of
https://github.com/logto-io/logto.git
synced 2025-03-31 22:51:25 -05:00
refactor(console): improve input confidentiality handling in TextInput component (#5409)
This commit is contained in:
parent
b54a5388d5
commit
935ee34e12
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ function TextInput(
|
|||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
suffixIcon.props.className,
|
||||
styles.suffix,
|
||||
alwaysShowSuffix && styles.visible
|
||||
// The view/hide content toggle should always be visible if this is a confidential input
|
||||
(isConfidential || alwaysShowSuffix) && styles.visible
|
||||
),
|
||||
})}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue