Coder Social home page Coder Social logo

Comments (4)

richardtallent avatar richardtallent commented on July 22, 2024

Hmm... I'm limited to my phone for a few days, can you put together an example and I'll look into it when I'm back in civilization?

from vue-simple-calendar.

richardtallent avatar richardtallent commented on July 22, 2024

I'm back to a computer, created a test to push a new event, and did not see an issue, using code like this:

this.events.push({ id: 'e12', startDate: this.thisMonth(22), endDate: this.thisMonth(23), title: 'New Event' });

(This is using the sample app's thisMonth() utility function.)

Two potential issues I can think of before we try to create a more detailed test case:

  1. Does your event have both a "startDate" and "endDate"? The calendar doesn't currently support a missing endDate (it should, so if that's the problem, we can convert this to a bug report for that).

  2. When you created your dates, can you confirm you used a 0-based month number in your new Date() call? That always trips me up, and would result in your new event being created, but rendered on the month after the one intended.

from vue-simple-calendar.

kjakobson avatar kjakobson commented on July 22, 2024

I will check both 1. and 2. when I'm back at my work pc. It's actually possible I forgot to convert the date from ISO format which is sent by my API. I think you can close this issue for now.

from vue-simple-calendar.

richardtallent avatar richardtallent commented on July 22, 2024

I just released 1.5.0, which cleans up a few things, I went ahead and added support to make endDate optional (defaults to start), as well as id (defaults to random) and title (default "Untitled"). Will close for now.

from vue-simple-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.