Skip to content

Commit f8f6006

Browse files
author
Adam
committed
Text: accepts arbitrary props
Resolves svar-widgets#4
1 parent bf28de6 commit f8f6006

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/Text.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<div class="input {css}" class:error class:disabled>
3535
{#if type == "password"}
3636
<input
37+
{...$$restProps}
3738
bind:value
3839
bind:this={input}
3940
{id}
@@ -48,6 +49,7 @@
4849
/>
4950
{:else if type == "number"}
5051
<input
52+
{...$$restProps}
5153
bind:value
5254
bind:this={input}
5355
{id}
@@ -62,6 +64,7 @@
6264
/>
6365
{:else}
6466
<input
67+
{...$$restProps}
6568
bind:value
6669
bind:this={input}
6770
{id}

0 commit comments

Comments
 (0)