Skip to content

Commit

Permalink
fix error display on submit in datePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Nov 15, 2024
1 parent ab14190 commit 9a153f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 9a153f5

Please sign in to comment.