Skip to content

Commit 8d25adb

Browse files
fix: Input display on locale change
* fix: Input display on locale change * chore: Update package version
1 parent 8f1cb48 commit 8d25adb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@softechub-ib/vue-datepicker",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "Datepicker component for Vue 3",
55
"author": "softechub-ib",
66
"private": false,

src/components/VueDatePicker.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ const inputValue = computed({
8787
});
8888
8989
const inputDisplay = computed(() => {
90+
if (props.locale) {
91+
// silent, just to trigger this computed update
92+
}
93+
9094
return isRange.value && inputValue.value[0]
9195
? `${formatDate(inputValue.value[0], getInputDisplayFormat())} - ${inputValue.value[1] ? formatDate(inputValue.value[1], getInputDisplayFormat()) : ''}`
9296
: !isRange.value && typeof inputValue.value === 'string'

0 commit comments

Comments
 (0)