next year button on top is disabled before correct year
See original GitHub issueExpected 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 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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by #2352
bump