Closed Raduuu closed 9 months ago
I was setting :value="modelValue
instead of :model-value="modelValue"
I was setting
:value="modelValue
instead of:model-value="modelValue"
Can you please show the complete example? I am having the same problem and :model-value="modelValue"
does not solve it.
<date-picker
:model-value="modelValue"
mode="dateTime"
v-bind="datePickerProps"
:color="selectedColor"
@update:modelValue="updateValue"
timezone="UTC"
>
<template #default="{ inputValue, showPopover }">
<ui-input
:modelValue="inputValue"
:tabindex="tabindex"
:disabled="disabled"
readonly
v-bind="omit(attrs, 'datePickerProps')"
@click="() => !disabled && showPopover()"
>
<template #iconRight>
<ui-icon
name="calendar"
:size="24"
@click="() => !disabled && showPopover()"
/>
</template>
</ui-input>
</template>
</date-picker>
Hello, I really like the plugin, however I have a question. How can I be sure to also set
inputValue
when modelValue from date-picker changes in this case?