Skip to content

Commit 5e85058

Browse files
authored
Merge pull request #69 from rdarcy1/patch-1
Fix links in forms.md
2 parents c5f857b + 5e22907 commit 5e85058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/forms.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test('trigger', async () => {
7878
})
7979
```
8080

81-
> If you haven't seen `emitted()` before, don't worry. It's used to assert the emitted events of a Component. You can learn more in [Event Handling]./event-handling).
81+
> If you haven't seen `emitted()` before, don't worry. It's used to assert the emitted events of a Component. You can learn more in [Event Handling](./event-handling).
8282
8383
We trigger the `click` event listener, so that the Component executes the `submit` method. As we did with `setValue`, we use `await` to make sure the action is being reflected by Vue.
8484

@@ -228,7 +228,7 @@ We then make a simple assertion, whether the form emitted the correct event and
228228

229229
#### Native form submission
230230

231-
Triggering a `submit` event on a `<form>` element mimics browser behavior during form submission. If we wanted to trigger form submission more naturally, we could trigger a `click` event on the submit button instead. Since form elements not connected to the `document` cannot be submitted, as per the [HTML specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-submission-algorithm), we need to use [`attachTo`](.,/api/#attachto) to connect the wrapper's element.
231+
Triggering a `submit` event on a `<form>` element mimics browser behavior during form submission. If we wanted to trigger form submission more naturally, we could trigger a `click` event on the submit button instead. Since form elements not connected to the `document` cannot be submitted, as per the [HTML specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-submission-algorithm), we need to use [`attachTo`](../api/#attachto) to connect the wrapper's element.
232232

233233
#### Multiple modifiers on the same event
234234

0 commit comments

Comments
 (0)