@@ -4,11 +4,11 @@ title: Options
44---
55
66The following options allow to adjust the behavior of ` user-event ` APIs.
7- They can be applied per [ ` setup() ` ] ( setup ) .
7+ They can be applied per [ ` setup() ` ] ( setup.mdx ) .
88
99### applyAccept
1010
11- When using [ ` upload() ` ] ( utility#upload ) , automatically discard files that don't
11+ When using [ ` upload() ` ] ( api- utility.mdx #upload) , automatically discard files that don't
1212match an ` accept ` property if such property exists on the element.
1313
1414` default ` : ` true `
@@ -41,7 +41,7 @@ This moves the next changes at least to the next macro task and allows other
4141The document.
4242
4343This defaults to the owner document of an element if an API is called
44- [ directly] ( setup#direct-api ) with an element and without setup. Otherwise it
44+ [ directly] ( setup.mdx #direct-api ) with an element and without setup. Otherwise it
4545falls back to the global document.
4646
4747` default ` : ` element.ownerDocument ?? global.document `
@@ -90,22 +90,22 @@ This allows to plug in different pointer devices.
9090
9191### skipAutoClose
9292
93- [ ` type() ` ] ( utility#type ) automatically releases any keys still pressed at the
93+ [ ` type() ` ] ( api- utility.mdx #type) automatically releases any keys still pressed at the
9494end of the call.
9595This option allows to opt out of this feature.
9696
9797` default ` : false
9898
9999### skipClick
100100
101- [ ` type() ` ] ( utility#type ) implies a click on the element.
101+ [ ` type() ` ] ( api- utility.mdx #type) implies a click on the element.
102102This option allows to opt out of this feature.
103103
104104` default ` : false
105105
106106### skipHover
107107
108- [ ` click() ` ] ( utility#click ) implies moving the cursor to the target element
108+ [ ` click() ` ] ( api- utility.mdx #click) implies moving the cursor to the target element
109109first.
110110This options allows to opt out of this feature.
111111
@@ -114,8 +114,8 @@ This options allows to opt out of this feature.
114114Write selected data to
115115[ Clipboard API] ( https://developer.mozilla.org/en-US/docs/Web/API/Clipboard ) when
116116a ` cut ` or ` copy ` is triggered. The Clipboard API is usually not available to
117- test code. Our [ ` setup() ` ] ( setup ) replaces the ` navigator.clipboard ` property
117+ test code. Our [ ` setup() ` ] ( setup.mdx ) replaces the ` navigator.clipboard ` property
118118with a stub.
119119
120- ` default ` when calling the APIs [ directly] ( setup#direct-api ) : ` false `
120+ ` default ` when calling the APIs [ directly] ( setup.mdx #direct-api ) : ` false `
121121` default ` when calling the APIs on an instance from ` setup() ` : ` true `
0 commit comments