File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
site/src/modules/workspaces/DynamicParameter Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ export const MaskedInput: Story = {
236
236
form_type : "input" ,
237
237
styling : {
238
238
...MockPreviewParameter . styling ,
239
+ placeholder : "Tell me a secret" ,
239
240
mask_input : true ,
240
241
} ,
241
242
} ,
@@ -254,16 +255,3 @@ export const MaskedTextArea: Story = {
254
255
} ,
255
256
} ,
256
257
} ;
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
- } ;
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ const DebouncedParameterField: FC<DebouncedParameterFieldProps> = ({
272
272
273
273
// Helper function to mask all characters with *
274
274
const maskValue = ( val : string ) : string => {
275
- return "* " . repeat ( val . length ) ;
275
+ return "\u2022 " . repeat ( val . length ) ;
276
276
} ;
277
277
const debouncedLocalValue = useDebouncedValue ( localValue , 500 ) ;
278
278
const onChangeEvent = useEffectEvent ( onChange ) ;
You can’t perform that action at this time.
0 commit comments