fix table arrow navigation

Summary: Check for `highlightableRows` was wrong.

Reviewed By: passy

Differential Revision: D9602101

fbshipit-source-id: dbab5efb0c2d71c1a2a018bf035f39d2539f5595
This commit is contained in:
Daniel Büchele
2018-08-31 03:10:04 -07:00
committed by Facebook Github Bot
parent 3b456fad3e
commit d14def44f1

View File

@@ -217,7 +217,7 @@ class ManagedTable extends React.Component<
this.onCopy(); this.onCopy();
} else if ( } else if (
(e.keyCode === 38 || e.keyCode === 40) && (e.keyCode === 38 || e.keyCode === 40) &&
!this.props.highlightableRows this.props.highlightableRows
) { ) {
// arrow navigation // arrow navigation
const {rows} = this.props; const {rows} = this.props;