File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
apps/website/src/routes/docs/styled/input/examples
packages/kit-styled/src/components/input Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Input } from '~/components/ui';
4
4
export default component$ ( ( ) => {
5
5
return (
6
6
< >
7
- < Input type = "email" placeholder = "Email" />
7
+ < Input type = "email" placeholder = "Email" value = "[email protected] " />
8
8
</ >
9
9
) ;
10
10
} ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const Input = component$<InputProps>(
10
10
name,
11
11
error,
12
12
'bind:value' : valueSig ,
13
+ value,
13
14
// eslint-disable-next-line @typescript-eslint/no-unused-vars
14
15
'bind:checked' : checkedSig ,
15
16
id,
@@ -19,7 +20,7 @@ export const Input = component$<InputProps>(
19
20
const inputRef = useSignal < HTMLInputElement > ( ) ;
20
21
21
22
// TODO: remove this when we can figure out why the optimizer forces you to have a signal rather than conditionally adding the bind:value prop.
22
- const dummySig = useSignal ( '' ) ;
23
+ const dummySig = useSignal < string | undefined > ( value ?. toString ( ) ) ;
23
24
24
25
return (
25
26
< >
You can’t perform that action at this time.
0 commit comments