Skip to content

Commit a2fd0a4

Browse files
authored
docs: Remove example of synthetic right clicks
These should not be observable in a browser. Since we're all about testing how a user interacts, we should not docoument these esoteric usages. Closes #469
1 parent 4ea4e0d commit a2fd0a4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

docs/dom-testing-library/api-events.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ Convenience methods for firing DOM events. Check out
4141
[src/event-map.js](https://github.com/testing-library/dom-testing-library/blob/master/src/event-map.js)
4242
for a full list as well as default `eventProperties`.
4343

44-
```javascript
45-
// <button>Submit</button>
46-
const rightClick = { button: 2 }
47-
fireEvent.click(getByText('Submit'), rightClick)
48-
// default `button` property for click events is set to `0` which is a left click.
49-
```
50-
5144
**target**: When an event is dispatched on an element, the event has the
5245
subjected element on a property called `target`. As a convenience, if you
5346
provide a `target` property in the `eventProperties` (second argument), then

0 commit comments

Comments
 (0)