mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(form): evaluate code in "Prevent default behavior" example [ci skip]
This commit is contained in:
parent
123bb91f7b
commit
f4b53369ff
1 changed files with 0 additions and 2 deletions
|
@ -65,7 +65,6 @@ components: ["Form", "FormGroup"]
|
|||
|
||||
The forwarded `submit` event is not modified. Use `e.preventDefault()` to prevent the native form submission behavior.
|
||||
|
||||
```
|
||||
<Form on:submit={e => {
|
||||
e.preventDefault();
|
||||
console.log("submit", e);
|
||||
|
@ -73,4 +72,3 @@ The forwarded `submit` event is not modified. Use `e.preventDefault()` to preven
|
|||
<Checkbox id="checkbox-0" labelText="Checkbox Label" checked />
|
||||
<Button type="submit">Submit</Button>
|
||||
</Form>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue