spec fixes

This commit is contained in:
Phil Hughes 2017-09-22 17:22:21 +01:00
parent c4b2d1878a
commit 35d189d6a7
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export const canShowActiveSubItems = (el) => {
export const canShowSubItems = () => bp.getBreakpointSize() === 'sm' || bp.getBreakpointSize() === 'md' || bp.getBreakpointSize() === 'lg';
export const getHideSubItemsInterval = () => {
if (!currentOpenMenu || mousePos.length >= 1) return 0;
if (!currentOpenMenu || !mousePos.length) return 0;
const currentMousePos = mousePos[mousePos.length - 1];
const prevMousePos = mousePos[0];