CLASSROOMIO-T-3: Wait for some time before hiding nav on mobile when item clicked
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
function handleMainGroupClick(href) {
|
function handleMainGroupClick(href) {
|
||||||
return () => {
|
return () => {
|
||||||
if ($isMobile) {
|
if ($isMobile) {
|
||||||
show = false;
|
setTimeout(() => (show = false), 500);
|
||||||
}
|
}
|
||||||
goto(href);
|
goto(href);
|
||||||
};
|
};
|
||||||
@@ -170,7 +170,11 @@
|
|||||||
href={isStudent && !item.is_complete
|
href={isStudent && !item.is_complete
|
||||||
? $page.path
|
? $page.path
|
||||||
: getLessonsRoute($course.id, item.id)}
|
: getLessonsRoute($course.id, item.id)}
|
||||||
on:click={() => $isMobile && (show = false)}
|
on:click={() => {
|
||||||
|
if ($isMobile) {
|
||||||
|
setTimeout(() => (show = false), 500);
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<span class="course-counter">
|
<span class="course-counter">
|
||||||
{getLectureNo(index + 1)}
|
{getLectureNo(index + 1)}
|
||||||
|
|||||||
Reference in New Issue
Block a user