Fix Menu component blur handling in Firefox

This commit is contained in:
Kimmo Puputti 2018-02-14 10:25:39 +02:00
parent ffec520e25
commit 2ee00aa5a0
4 changed files with 4 additions and 0 deletions

View file

@ -2,4 +2,5 @@
width: auto;
height: 100%;
position: relative;
outline: none;
}

View file

@ -174,6 +174,7 @@ class Menu extends Component {
<div
className={classes}
onBlur={this.onBlur}
tabIndex={0}
onKeyDown={this.onKeyDown}
ref={c => {
this.menu = c;

View file

@ -5,6 +5,7 @@ exports[`Menu matches snapshot 1`] = `
className=""
onBlur={[Function]}
onKeyDown={[Function]}
tabIndex={0}
>
<button
className=""

View file

@ -105,6 +105,7 @@ exports[`TopbarDesktop data matches snapshot 1`] = `
className=""
onBlur={[Function]}
onKeyDown={[Function]}
tabIndex={0}
>
<button
className=""