diff --git a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue index 6b73b1bee..d10142853 100644 --- a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue +++ b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue @@ -10,6 +10,8 @@ import { type ComponentPublicInstance, defineComponent, type PropType, + inject, + ref, } from 'vue' import { VTextField } from 'vuetify/lib/components/index.mjs' import { config } from './config' @@ -62,10 +64,10 @@ export default defineComponent({ textFieldActivator: { type: Boolean, default: false }, noCalendar: { type: Boolean, default: false }, outlined: { type: Boolean, default: false }, - formSubmitted: { - type: Boolean, - default: false, - }, + }, + setup() { + const formSubmitted = inject('formSubmitted', ref(false)) + return { formSubmitted } }, computed: { calendarDateFormat() {