fix keyboard navigation
Summary: Keyboard events were not handled correctly. This was because the tabIndex was not set correctly. Maybe a regression from the TypeScript conversion. Reviewed By: passy Differential Revision: D17079157 fbshipit-source-id: 752853c0d761da67c7b09f50b531abf58bc7feec
This commit is contained in:
committed by
Facebook Github Bot
parent
fe87fd9346
commit
8d653672f2
@@ -633,7 +633,7 @@ export class Elements extends PureComponent<ElementsProps, ElementsState> {
|
||||
render() {
|
||||
return (
|
||||
<ElementsBox>
|
||||
<ElementsContainer onKeyDown={this.onKeyDown}>
|
||||
<ElementsContainer onKeyDown={this.onKeyDown} tabIndex={0}>
|
||||
{this.state.flatElements.map(this.buildRow)}
|
||||
</ElementsContainer>
|
||||
</ElementsBox>
|
||||
|
||||
Reference in New Issue
Block a user