Skip to content
Snippets Groups Projects
Commit a8e338fa authored by chrisgarrity's avatar chrisgarrity
Browse files

Replace mouseLeave with mouseOut

parent abaa2cfd
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class LanguageSelector extends React.Component {
super(props);
bindAll(this, [
'handleChange',
'handleMouseLeave',
'handleMouseOut',
'ref'
]);
document.documentElement.lang = props.currentLocale;
......@@ -25,12 +25,12 @@ class LanguageSelector extends React.Component {
this.removeListeners();
}
addListeners () {
this.select.addEventListener('mouseleave', this.handleMouseLeave);
this.select.addEventListener('mouseout', this.handleMouseOut);
}
removeListeners () {
this.select.removeEventListener('mouseleave', this.handleMouseLeave);
this.select.removeEventListener('mouseout', this.handleMouseOut);
}
handleMouseLeave () {
handleMouseOut () {
this.select.blur();
}
ref (c) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment