Skip to content

Commit 6e28c97

Browse files
committed
Fix issue #223
1 parent 7dbb562 commit 6e28c97

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
@@ -106,6 +106,7 @@
106106
visibility: false;
107107
width: 100%;
108108
transition: all 0.25s ease-in-out;
109+
z-index: 10;
109110

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

0 commit comments

Comments
 (0)