question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

next year button on top is disabled before correct year

See original GitHub issue

Expected behaviour

User has the ability to pick any date (month & year view) from year 2012 and up till this month of this year. The ‘next year’ button on top should appear on all years from 2012 till the past year.

Actual behaviour

The ‘next year’ button appear from 2012 till one year before last year! datepicker_next_year_btn

Datepicker version used

v1.7.1

Example code

datepicker(
      {
        format: "m/yyyy", 
        startDate: '1/2012', 
        endDate: '0m', 
        startView: "months",
        minViewMode: "months",
        maxViewMode: "years", 
        autoclose: true, 
        language: 'ar', 
        orientation: 'left', 
        beforeShowMonth: function(date){
          var today = new Date();          
          if(date.getMonth() == today.getMonth() && date.getFullYear() == today.getFullYear()){
            return {classes: 'month-highlight'};
          }
        },
        // todayBtn: true, 
        // todayHighlight: true, 
        disableTouchKeyboard: true
        }
    )

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vsn4ikcommented, Apr 21, 2018

Fixed by #2352

0reactions
dsab123commented, Feb 26, 2018

bump

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it ok to 'grey out' disabled buttons? | by H Locke | Medium
Disabled or inactive buttons are often “greyed out” — with white or grey ... 2.1 and will be coming back with recommendations next...
Read more >
How to disable or enable buttons using Javascript and jQuery
This is done by controlling the state of the button (enabled/disabled) based on whether the input field is filled or empty.
Read more >
How To Enable The BACK Button On Your Android ... - YouTube
How To get The BACK Button On Your Android Phone Quickly & Easily if the ... Your browser can't play this video. ......
Read more >
Next Button Disabled - dominKnow Community
I have disabled the Next navigation button on a Flow page. There are two clickable elements on the page that the learner must...
Read more >
Style disabled button with CSS - Stack Overflow
For the disabled buttons you can use the :disabled pseudo class. It works for all the elements that have a disabled API (typically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found