longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

onChangeView event or .invalid state on .prev and .next #513

Closed jcubic closed 3 weeks ago

jcubic commented 2 years ago

I need this event, but I actually I need .prev and .next to have class .invalid when you can't go prev or next because the date is out of range. I have my own style on top of the library and I need to hide .next and .prev, when you can't got next or prev month.

I've tried to use:

$(document).on('change', '... select', function() {
});

but this event is not triggered, I have no idea why, I don't see return false or .preventDefault() in the library for change event. Some part of my application code may interfere with the library.

I can contribute with the code if you're willing to merge. I wanted to modify my copy, but it would be nice to have this in library.

monovertex commented 3 weeks ago

I'm sorry, but I don't fully understand the issue. Can you please provide some more context (preferably with code)?

jcubic commented 3 weeks ago

The issue was created 3 years ago, I don't care about this anymore.