From 94592592f7f5209efcd1e67b6e0e0fa0afff1abc Mon Sep 17 00:00:00 2001 From: Tim Schmidt Date: Tue, 12 Mar 2024 16:19:21 -0700 Subject: [PATCH] fix: onDateCleared goes to latest and starts refresh Signed-off-by: Tim Schmidt --- src/components/DateTimePicker.vue | 14 +++----------- src/pages/AccountDetails.vue | 10 ++++++++-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/DateTimePicker.vue b/src/components/DateTimePicker.vue index c31b8de0f..00ee2844f 100644 --- a/src/components/DateTimePicker.vue +++ b/src/components/DateTimePicker.vue @@ -22,7 +22,7 @@ @@ -49,6 +49,8 @@ export default defineComponent({ controller: Object as PropType }, + emits: ["dateCleared"], + setup(props) { const date = ref(new Date()) const handleClosed = () => { @@ -62,19 +64,9 @@ export default defineComponent({ console.log("Ignoring click because props.controller is undefined") } } - const handleCleared = () => { - if (props.controller) { - const controller = props.controller - controller.startAutoRefresh() - } else { - console.log("Ignoring click because props.controller is undefined") - } - } - return { handleClosed, - handleCleared, date } } diff --git a/src/pages/AccountDetails.vue b/src/pages/AccountDetails.vue index 1038f379b..8eb7e6813 100644 --- a/src/pages/AccountDetails.vue +++ b/src/pages/AccountDetails.vue @@ -220,7 +220,7 @@