Skip to content

Commit 60ae3b9

Browse files
committed
💬 📚 Improve troubleshooting step description
1 parent 74b3073 commit 60ae3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ Finally, make sure your key event are not coming from one of the [tags ignored b
12291229
12301230
#### React Hotkeys thinks I'm holding down a key I've released
12311231
1232-
This can happen when you have an action handler that either unmounts the `<HotKeys>` component, or focuses an area of the application where there is no parent `<HotKeys>`. The solution to this is to add a `<HotKeys root>` to the top of your application that renders it as children - or at least high enough to *not* be unmounted or unfocused by your action handler.
1232+
This can happen when you have an action handler that either unmounts the `<HotKeys>` component, or focuses an area of the application where there is no ancestor `<HotKeys>`. The solution is to add a `<HotKeys>` component with the `root` prop to the top of your application - or at least high enough to *not* be unmounted or unfocused by your action handler.
12331233
12341234
```javascript
12351235
<HotKeys root>

0 commit comments

Comments
 (0)