ManukMinasyan / vue-functional-calendar

Vue.js Functional Calendar | Component/Package
https://vue-functional-calendar.now.sh/
MIT License
467 stars 84 forks source link

Error when using isTypeable with isDateRange #133

Closed zicada closed 1 year ago

zicada commented 3 years ago

Using these props:

  <functional-calendar
    ref="Calendar"
    v-model="calendarData"
    :date-format="'dd.mm.yyyy'"
    :is-modal="true"
    :is-typeable="true"
    :is-separately="false"
    :is-date-range="true"
    :is-multiple="true"
    :is-auto-closeable="true"
    :calendars-count="2"
    :show-week-numbers="true"
    :change-year-function="true"
    placeholder="Dato"
    @closed="setDateRange"
  ></functional-calendar>

When i try typing into one of the input boxes i get:

vue.esm.js?efeb:628 [Vue warn]: Property or method "helpCalendar" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> at node_modules/vue-functional-calendar/src/components/PickerInputs.vue

at node_modules/vue-functional-calendar/src/components/FunctionalCalendar.vue at src/components/DateFilters.vue at src/EventSearch.vue warn @ vue.esm.js?efeb:628 warnNonPresent @ vue.esm.js?efeb:2047 get @ vue.esm.js?efeb:2102 set @ PickerInputs.vue?85e8:107 input @ PickerInputs.vue?cb53:39 invokeWithErrorHandling @ vue.esm.js?efeb:1863 invoker @ vue.esm.js?efeb:2188 original._wrapper @ vue.esm.js?efeb:7565 vue.esm.js?efeb:628 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'mask' of undefined" found in ---> at node_modules/vue-functional-calendar/src/components/PickerInputs.vue at node_modules/vue-functional-calendar/src/components/FunctionalCalendar.vue at src/components/DateFilters.vue at src/EventSearch.vue warn @ vue.esm.js?efeb:628 logError @ vue.esm.js?efeb:1893 globalHandleError @ vue.esm.js?efeb:1888 handleError @ vue.esm.js?efeb:1848 invokeWithErrorHandling @ vue.esm.js?efeb:1871 invoker @ vue.esm.js?efeb:2188 original._wrapper @ vue.esm.js?efeb:7565 vue.esm.js?efeb:1897 TypeError: Cannot read property 'mask' of undefined at Proxy.set (PickerInputs.vue?85e8:107) at input (PickerInputs.vue?cb53:39) at invokeWithErrorHandling (vue.esm.js?efeb:1863) at HTMLInputElement.invoker (vue.esm.js?efeb:2188) at HTMLInputElement.original._wrapper (vue.esm.js?efeb:7565)
ManukMinasyan commented 1 year ago

Hello. Thanks for your feedback. Now I don't have time to deal with the calendar. Please create pull requests, I will appreciate it, it will be useful for the community.