docs(form): evaluate code in "Prevent default behavior" example [ci skip]

This commit is contained in:
Eric Liu 2022-03-19 13:24:40 -07:00
commit f4b53369ff

View file

@ -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>
```