Skip to content

Commit

Permalink
EuiContextMenu null check for index (elastic#2304)
Browse files Browse the repository at this point in the history
* null check

* CL
  • Loading branch information
thompsongl committed Sep 10, 2019
1 parent fa163b7 commit 9d5bd0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Updated TS def for `EuiFilterSelect` ([#2291](https://github.com/elastic/eui/pull/2291))
- Fixed alignment of icons and label in `EuiSideNavItem` ([#2297](https://github.com/elastic/eui/pull/2297))
- Fixed logic in `EuiContextMenu` to account for index of `0` ([#2304](https://github.com/elastic/eui/pull/2304))

## [`13.8.0`](https://github.com/elastic/eui/tree/v13.8.0)

Expand Down
2 changes: 1 addition & 1 deletion src/components/context_menu/context_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class EuiContextMenu extends Component<EuiContextMenuProps, State> {
}

showNextPanel = (itemIndex?: number) => {
if (!itemIndex) {
if (itemIndex == null) {
return;
}

Expand Down

0 comments on commit 9d5bd0c

Please sign in to comment.