Coder Social home page Coder Social logo

Comments (2)

rmgalante avatar rmgalante commented on May 17, 2024

I would like to clarify the problem I see. I've been debugging this and here is what I found. I put some debugging statements in the event handler for the event, date-changed.

I load the page, and the console log shows 2016-10-20.

I change the month from October of 2016 to October of 2017 by clicking the right arrow in the upper right corner until the month of October is shown (same month next year). I click on the day, 31. The console shows one event fired with a value of 2016-10-31. Why is it not reporting 2017-10-31? This is the date that appears in the left panel => 2017, Mon, Oct 31). That is wrong! It's not Monday.

I reload the page and click on the year and change it to 2017. Then if I click on the day, 31, I see the correct date, which is 2017-10-31. And the date that appears in the left panel => 2017, Tue, Oct 31. This is right. It is Tuesday.

So the changed year is detected, when I click the year and change it. But the changed year is not detected when I change the month from October of 2016 to October of 2017 by clicking the right arrow button. So when I click the day of the month, I get the previous year. And the left panel is not showing the correct date.

This only happens the first time I click a day. If I click a different day of the same month, the changed year is detected.

from app-datepicker.

motss avatar motss commented on May 17, 2024

@rmgalante Issue confirmed. A patch is in progress. Thank you for reporting.

from app-datepicker.

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.