Skip to content

Commit

Permalink
fix(InputNumber): name now defaults to nanoid()
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Nov 13, 2023
1 parent 2d79f76 commit 2f79ee7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/input-number/InputNumber.svelte
Expand Up @@ -5,8 +5,9 @@
import { error as errorIcon, close } from '../../icons';
import { writable, type Writable } from 'svelte/store';
import { twMerge } from 'tailwind-merge';
import { nanoid } from 'nanoid';
export let name: string;
export let name: string = nanoid();
export let error: string | undefined = undefined;
export let placeholder: string | undefined = undefined;
export let value: number | undefined = undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/input-number/examples.ts
Expand Up @@ -5,7 +5,7 @@ export const props: Prop[] = [
id: '1',
prop: 'name',
type: 'string',
default: ''
default: 'nanoid()'
},
{
id: '2',
Expand Down

0 comments on commit 2f79ee7

Please sign in to comment.