Skip to content

Commit

Permalink
Merge 532b332 into 91c96e6
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesplease committed Feb 11, 2022
2 parents 91c96e6 + 532b332 commit cf539b1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

### v0.0.18 (2022/2/11)

**New Features**

- New hook: `useLeafFocusedNode`. This returns the current leaf focused node in the hierarchy.
- Selection events from clicking focus nodes now bubble up the focus hierarchy, just like LRUD events do

**Bug Fixes**

- Fixed an erroneous error that would be logged when mounting a tree with disabled nodes.

### v0.0.17 (2022/2/5)

**New Features**
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ export default function MyComponent() {
### `useLeafFocusedNode()`
A [Hook](https://reactjs.org/docs/hooks-intro.html) that returns the currently in focus leaf node. It reflects the focus state in every moment, therefore if there are no valid focusable nodes,
then the root node will be returned instead.
A [Hook](https://reactjs.org/docs/hooks-intro.html) that returns the currently-in-focus leaf node.
```js
import { useLeafFocusedNode } from '@please/lrud';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@please/lrud",
"version": "0.0.17",
"version": "0.0.18",
"description": "A React library for managing focus in TV apps.",
"main": "es/index.js",
"module": "es/index.js",
Expand Down

0 comments on commit cf539b1

Please sign in to comment.