stormseed / daykeep-calendar-quasar

A full event display calendar for the Quasar framework that has multiple viewing formats.
MIT License
270 stars 71 forks source link

Edit Event Modal not working #66

Open piotrgulbis opened 4 years ago

piotrgulbis commented 4 years ago

I'm getting the following error:

Vue warn]: Error in callback for watcher "value": "TypeError: Cannot read property 'mobile' of undefined"

found in

---> <QDialog>
       <CalendarEventDetail> at node_modules/@daykeep/calendar-quasar/component/calendar/templates/quasar/CalendarEventDetail.vue
         <CalendarMonthInner> at node_modules/@daykeep/calendar-core/component/calendar/templates/common/CalendarMonthInner.vue
           <CalendarMonth> at node_modules/@daykeep/calendar-quasar/component/calendar/templates/quasar/CalendarMonth.vue
             <QTabPanel>
               <QTabPanels>
                 <Calendar> at node_modules/@daykeep/calendar-quasar/component/calendar/templates/quasar/Calendar.vue
                   <QPage>
                     <PageEvents> at src/pages/Events.vue
                       <QPageContainer>
                         <QLayout>
                           <MyLayout> at src/layouts/MyLayout.vue
                             <App> at src/App.vue
                               <Root>

Using Quasar 1.0.3. Nothing fancy in the component, just adding an event array with 1 event as per the example.

    <daykeep-calendar
      :event-array="events"
      calendar-locale="de"
      calendar-timezone="Europe/Vienna"
      :allow-editing="true"
      :render-html="true"
    />

Clicking on the event causes the error above... incompatibility with 1.0.3 or am I missing something?

sn0rcha commented 4 years ago

I'm getting the same problem.

sirbeagle commented 4 years ago

Sorry this is taking so long. I was having problems reproducing this problem but encountered it once I did a fresh quasar create and added in the calendar code.

The error is actually being caused by some of the dialog code that looks to be outside of the calendar components (namely this). That said, similar code is being called elsewhere without issue so I have to assume for the moment that the calendar code is calling the dialog incorrectly. Still trying to figure out the root of the problem however.

sirbeagle commented 4 years ago

Okay, I believe I have this figured out. Of all the weird things, I think this may be caused because of the way the package.json dependencies are set up. The calendar component was using it's own version of Vue and when trying to do some event messaging I think it was getting confused.

I have a local version here that appears to be working correctly and will be pushing that in the next day or so.