diff --git a/src/common/MenuLayout.js b/src/common/MenuLayout.js index 8bdb577d..15682458 100644 --- a/src/common/MenuLayout.js +++ b/src/common/MenuLayout.js @@ -31,8 +31,12 @@ const MenuLayout = (TagsList, ShortUrls, AsideMenu, CreateShortUrl, ShortUrlVisi const burgerClasses = classNames('menu-layout__burger-icon', { 'menu-layout__burger-icon--active': sidebarVisible, }); - const swipeMenuIfNoModalExists = (callback) => () => { - if (document.querySelector('.modal')) { + const swipeMenuIfNoModalExists = (callback) => (e) => { + const swippedOnVisitsTable = e.event.path.some( + ({ classList }) => classList && classList.contains('visits-table') + ); + + if (swippedOnVisitsTable || document.querySelector('.modal')) { return; } diff --git a/src/visits/VisitsTable.js b/src/visits/VisitsTable.js index 6c5e082f..346143ac 100644 --- a/src/visits/VisitsTable.js +++ b/src/visits/VisitsTable.js @@ -88,7 +88,7 @@ const VisitsTable = ({ }, [ searchTerm ]); return ( -