add name to form components

This commit is contained in:
Sebastián Canio Barriga 2020-07-09 20:59:42 -04:00
commit 6fdb8d10ed
32 changed files with 82 additions and 26 deletions

View file

@ -19,6 +19,7 @@ export const Default = () => ({
light: boolean('Light (light)', false),
disabled: boolean('Disabled (disabled)', false),
invalid: boolean('Invalid (invalid)', false),
invalidText: text('Invalid text (invalidText)', 'A valid value is required')
invalidText: text('Invalid text (invalidText)', 'A valid value is required'),
name: 'combo-box-name'
}
});

View file

@ -18,6 +18,7 @@
export let titleText = '';
export let translateWithId = undefined;
export let value = '';
export let name = Math.random();
import { afterUpdate } from 'svelte';
import WarningFilled16 from 'carbon-icons-svelte/lib/WarningFilled16';
@ -100,6 +101,7 @@
open = true;
}}
{id}
{name}
{disabled}
{translateWithId}>
<input