mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(form): forward submit event
This commit is contained in:
parent
9e3a79f9e2
commit
8398e478e7
1 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,13 @@
|
|||
import { cx } from '../../lib';
|
||||
</script>
|
||||
|
||||
<form on:click on:mouseover on:mouseenter on:mouseleave class={cx('--form', className)} {style}>
|
||||
<form
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
on:submit|preventDefault
|
||||
class={cx('--form', className)}
|
||||
{style}>
|
||||
<slot />
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue