Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0237854

Browse files
committed
lil
1 parent cac18e9 commit 0237854

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

site/src/modules/workspaces/DynamicParameter/DynamicParameter.stories.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export const MaskedInput: Story = {
236236
form_type: "input",
237237
styling: {
238238
...MockPreviewParameter.styling,
239+
placeholder: "Tell me a secret",
239240
mask_input: true,
240241
},
241242
},
@@ -254,16 +255,3 @@ export const MaskedTextArea: Story = {
254255
},
255256
},
256257
};
257-
258-
export const MaskedInputWithPlaceholder: Story = {
259-
args: {
260-
parameter: {
261-
...MockPreviewParameter,
262-
form_type: "input",
263-
styling: {
264-
placeholder: "Enter your secret value",
265-
mask_input: true,
266-
},
267-
},
268-
},
269-
};

site/src/modules/workspaces/DynamicParameter/DynamicParameter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const DebouncedParameterField: FC<DebouncedParameterFieldProps> = ({
272272

273273
// Helper function to mask all characters with *
274274
const maskValue = (val: string): string => {
275-
return "*".repeat(val.length);
275+
return "\u2022".repeat(val.length);
276276
};
277277
const debouncedLocalValue = useDebouncedValue(localValue, 500);
278278
const onChangeEvent = useEffectEvent(onChange);

0 commit comments

Comments
 (0)