Skip to content

Commit dc29079

Browse files
committed
1 parent efbbe31 commit dc29079

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/shared/components/TopcoderHeader/index.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,18 @@ export default class TopcoderHeader extends React.Component {
319319
}
320320

321321
return (
322-
<div styleName="header" ref={(div) => { this.headerRoot = div; }}>
322+
<div
323+
styleName="header"
324+
ref={(div) => { this.headerRoot = div; }}
325+
onMouseLeave={() => {
326+
if (openedMenu) {
327+
closeMenu();
328+
}
329+
if (searchOpened) {
330+
closeSearch();
331+
}
332+
}}
333+
>
323334
<div styleName="main-desktop-header">
324335
<a href={BASE_URL} styleName="logo">
325336
<LogoTopcoderWithName height={53} width={135} />

src/shared/components/TopcoderHeader/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
visibility: false;
108108
width: 100%;
109109
transition: all 0.25s ease-in-out;
110+
z-index: 10;
110111

111112
&:global.opened {
112113
height: 128px;

0 commit comments

Comments
 (0)