From f1a5a1dfec919663a31e7c4b5f5593714bc5a630 Mon Sep 17 00:00:00 2001 From: David FYON Date: Fri, 6 Dec 2024 16:35:30 +0100 Subject: [PATCH] fix enter on DatePicker --- .../synapse-bridge/src/patterns/DatePicker/DatePicker.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue index 67da07303..352a08e12 100644 --- a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue +++ b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue @@ -273,6 +273,9 @@ export default defineComponent({ this.updateMessages() } }, + handleEnter() { + this.$emit('update:modelValue', this.textFieldValue) + }, isWeekend(date: Date) { const dayOfWeek = date.getDay() return dayOfWeek === 0 || dayOfWeek === 6 @@ -318,6 +321,7 @@ export default defineComponent({ } " @click:clear="onClear" + @keydown.enter="handleEnter" >