File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 n-dropdown(
44 :options ='jumpToDayOptions'
55 size ='huge'
6+ :show ='isDropdownOpenRef'
67 :show-arrow ='true'
78 trigger ='click'
89 @select ='jumpToDay'
10+ @clickoutside ='handleCloseDropdown'
911 )
10- button
12+ button( @click = 'handleOpenDropdown' )
1113 i.bi.bi-arrow-down-circle
1214 button( @click ='agendaStore.$patch({ filterShown: true })' )
1315 i.bi.bi-funnel
2830</template >
2931
3032<script setup>
31- import { computed , h } from ' vue'
33+ import { computed , h , ref } from ' vue'
3234import {
3335 NBadge ,
3436 NDropdown ,
@@ -61,7 +63,8 @@ function optionToLink(opts){
6163 {
6264 class: ' dropdown-link' ,
6365 ' data-testid' : ' mobile-link' ,
64- href: ` #${ key} `
66+ href: ` #${ key} ` ,
67+ onClick : () => jumpToDay (key)
6568 },
6669 [
6770 h (
@@ -77,6 +80,12 @@ function optionToLink(opts){
7780 }
7881}
7982
83+ const isDropdownOpenRef = ref (false )
84+
85+ const handleOpenDropdown = () => isDropdownOpenRef .value = true
86+
87+ const handleCloseDropdown = () => isDropdownOpenRef .value = false
88+
8089const jumpToDayOptions = computed (() => {
8190 const days = []
8291 if (agendaStore .isMeetingLive ) {
@@ -124,6 +133,7 @@ function jumpToDay (dayId) {
124133 } else {
125134 document .getElementById (dayId)? .scrollIntoView (true )
126135 }
136+ isDropdownOpenRef .value = false
127137}
128138
129139function downloadIcs (key ) {
You can’t perform that action at this time.
0 commit comments