INSR-7757: Copilot suggestions to fix a couple bugs

This commit is contained in:
Alex Humphries 2026-02-11 17:01:43 -05:00
parent 0a9007cc33
commit 694c274be4
2 changed files with 6 additions and 4 deletions

View file

@ -214,7 +214,7 @@ export default {
}, },
calendarOptionSelected(calendarOptionIndex) { calendarOptionSelected(calendarOptionIndex) {
this.setCalendarAppointment(this.calendarValues[calendarOptionIndex]); this.setCalendarAppointment(this.calendarValues[calendarOptionIndex]);
this.calendarOptionsOpen = false; this.closeCalendarOptions();
}, },
getCalendarData(type) { getCalendarData(type) {
let URL = ''; let URL = '';
@ -262,6 +262,9 @@ export default {
this.closeCalendarOptions(); this.closeCalendarOptions();
} }
} }
},
unmounted() {
window.removeEventListener('click', this.clickListener);
} }
}; };
</script> </script>

View file

@ -15,14 +15,13 @@
</template> </template>
<script> <script>
import calendarOptionButton from './calendar-option-button/calendar-option-button.vue'; import calendarOptionButton from './calendar-option-button/calendar-option-button.vue';
// Validation for the modal button
export default { export default {
name: 'calendar-modal-question', name: 'calendar-option-selection',
components: { components: {
calendarOptionButton calendarOptionButton
}, },
props: { props: {
calendarOptionsData: Object, calendarOptionsData: Array,
open: Boolean open: Boolean
}, },
emits: ['calendar-option-selected'], emits: ['calendar-option-selected'],