CLASSROOMIO-T-3: Wait for some time before hiding nav on mobile when item clicked

This commit is contained in:
Rotimi Best
2021-09-24 01:44:23 +03:00
parent 5c9b6b9ae8
commit 3d1a8b4231
@@ -36,7 +36,7 @@
function handleMainGroupClick(href) {
return () => {
if ($isMobile) {
show = false;
setTimeout(() => (show = false), 500);
}
goto(href);
};
@@ -170,7 +170,11 @@
href={isStudent && !item.is_complete
? $page.path
: getLessonsRoute($course.id, item.id)}
on:click={() => $isMobile && (show = false)}
on:click={() => {
if ($isMobile) {
setTimeout(() => (show = false), 500);
}
}}
>
<span class="course-counter">
{getLectureNo(index + 1)}