Skip to content

Commit 14375cb

Browse files
📚 Add link to withTargetChecked in sidebar
1 parent 2981ece commit 14375cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/_sidebar.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [`withPreventDefault`](with-prevent-default.md)
55
- [`withStopPropagation`](with-stop-propagation.md)
66
- [`withStopImmediatePropagation`](with-stop-immediate-propagation.md)
7-
- [`withTargetValue`](with-target-value.md)
87
- [`withKeyPress`](with-keypress.md)
8+
- [`withTargetChecked`](with-target-checked.md)
9+
- [`withTargetValue`](with-target-value.md)
910
- [Contributing](contributing.md)

docs/with-target-checked.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Calls your provided event handler function with `event.target.checked` as the fi
77
```js
88
import { withTargetChecked } from "browser-event-utils";
99

10-
myInputNode.addEventListener(
10+
myCheckboxNode.addEventListener(
1111
"change",
1212
withTargetChecked((checked, event) => {
1313
// 👈 Note that you still get the event object if you need it

0 commit comments

Comments
 (0)