Skip to content

Commit 43a980f

Browse files
committed
feat(TextInputMapper): support various input types * 2
1 parent 6b06984 commit 43a980f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/fields/TextInput/TextInputBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function _TextInputBase(props: CubeTextInputBaseProps, ref) {
330330

331331
const hasTextSecurity = multiLine && type === 'password';
332332
const textSecurityStyles =
333-
hasTextSecurity && value?.length
333+
hasTextSecurity && inputProps.value?.length
334334
? {
335335
fontFamily: 'text-security-disc',
336336
WebkitTextSecurity: 'disc',

src/components/fields/TextInputMapper/TextInputMapper.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ WithPassword.args = {
110110
export const WithTextArea = Template.bind({});
111111
WithTextArea.args = {
112112
value: { 'Key 1': 'Line 1\nLine 2' },
113-
valueProps: { inputType: 'textarea', type: 'password' },
113+
valueProps: { inputType: 'textarea' },
114114
};

0 commit comments

Comments
 (0)