meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
1 additions and
1 deletions
-
src/components/base/Box/index.js
|
|
@ -98,7 +98,7 @@ export class Tabbable extends PureComponent<any, TabbableState> { |
|
|
|
handleBlur = () => this.setState({ isFocused: false }) |
|
|
|
|
|
|
|
handleKeydown = (e: SyntheticKeyboardEvent<any>) => { |
|
|
|
if (e.which === 13 && this.state.isFocused && this.props.onClick) { |
|
|
|
if ((e.which === 13 || e.which === 32) && this.state.isFocused && this.props.onClick) { |
|
|
|
this.props.onClick(e) |
|
|
|
} |
|
|
|
} |
|
|
|