diff --git a/src/internal/EnhancedButton.js b/src/internal/EnhancedButton.js index 6c277693dbfade..d222fd1fdaef7d 100644 --- a/src/internal/EnhancedButton.js +++ b/src/internal/EnhancedButton.js @@ -94,6 +94,10 @@ class EnhancedButton extends Component { componentDidMount() { injectStyle(); listenForTabPresses(); + if (this.state.isKeyboardFocused) { + this.refs.enhancedButton.focus(); + this.props.onKeyboardFocus(null, true); + } } componentWillReceiveProps(nextProps) { @@ -304,6 +308,7 @@ class EnhancedButton extends Component { const buttonProps = { ...other, style: prepareStyles(mergedStyles), + ref: 'enhancedButton', disabled: disabled, onBlur: this.handleBlur, onClick: this.handleClick,