I discovered a problem on #21 PR that causes the bug described on #19 to still happen when resizing the screen from sm to md, so this PR fixes #19 completely by checking the device screen size and if the sidenav is open at the same time as conditions to don't open/close the submenu
I discovered a problem on #21 PR that causes the bug described on #19 to still happen when resizing the screen from sm to md, so this PR fixes #19 completely by checking the device screen size and if the sidenav is open at the same time as conditions to don't open/close the submenu