vue3-datepicker icon indicating copy to clipboard operation
vue3-datepicker copied to clipboard

Typeable prop not working with v-model

Open pelomedusa opened this issue 3 years ago • 0 comments

When using v-model with the prop :typeable="true", the value is parsed as soon as the format is recognized which results in the following behavior: Kazam_screencast_00016

This may be related to #55 , but unfortunately the issue is in russian, and i do not speak russian :)

Here is the code sample:

<template>
  <label for="" >
    <Datepicker
        v-model="dateValue"
        inputFormat="dd/MM/yyyy"
        :typeable="true"
    />
  </label>
</template>

<script>
import Datepicker from "vue3-datepicker";
import {ref} from "vue";

export default {
  components: {
    Datepicker
  },
  setup(){
    const dateValue = ref(null);
    return {dateValue}
  }
}
</script>

pelomedusa avatar Dec 16 '21 14:12 pelomedusa