Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Event Modal not working #66

Open
piotrgulbis opened this issue Jul 8, 2019 · 3 comments
Open

Edit Event Modal not working #66

piotrgulbis opened this issue Jul 8, 2019 · 3 comments
Assignees

Comments

@piotrgulbis
Copy link

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?

@sirbeagle sirbeagle self-assigned this Jul 9, 2019
@sn0rcha
Copy link

sn0rcha commented Jul 22, 2019

I'm getting the same problem.

@sirbeagle
Copy link
Collaborator

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
Copy link
Collaborator

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.

sirbeagle pushed a commit that referenced this issue Jul 31, 2019
…e dependency structure to try and avoid having multiple copies of Vue initialized which might be causing #66.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants