Skip to content

Commit e5149b6

Browse files
committed
fix(TextInputBase): apply text security even without value
1 parent eff177b commit e5149b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/forms/TextInput/TextInputBase.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ function _TextInputBase(props: CubeTextInputBaseProps, ref) {
329329
],
330330
);
331331

332-
const hasTextSecurity =
333-
inputRef?.current?.value && multiLine && type === 'password';
332+
const hasTextSecurity = multiLine && type === 'password';
334333
const textSecurityStyles = hasTextSecurity
335334
? {
336335
fontFamily: 'text-security-disc',

0 commit comments

Comments
 (0)