Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on select default dates, text show UNDEFINED mounth and year #473

Open
ferlorca opened this issue Jan 30, 2019 · 1 comment
Open
Labels
Status: needs submitter response There's additional information to properly assess this issue.

Comments

@ferlorca
Copy link

I found an error in this plugin when I select by default date the same date that I use as a max date at the moment to configure this plugin..
Example:
function configDateRangePickerWithMaxMin(max = null) { return { format: 'DD-MM-YYYY', language: 'es', separator: ' al ', endDate: (max != null) ? moment(max, "DD-MM-YYYY").toDate() : null, monthSelect: true, yearSelect: true, getValue: function () { return $(this).val(); }, } }; var today = moment(new Date).format("DD-MM-YYYY"); //daterange input $("#reportrange-busqueda").dateRangePicker(configDateRangePickerWithMaxMin(today)) $("#reportrange-busqueda").data('dateRangePicker').setDateRange(today , today);
I hope this issue help you to improve this great plugin

@monovertex
Copy link
Collaborator

Please provide a reproduction through JSFiddle or something similar.

@monovertex monovertex added Status: needs submitter response There's additional information to properly assess this issue. Status: needs triage Issue has not been properly analyzed yet. and removed Status: needs triage Issue has not been properly analyzed yet. labels Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: needs submitter response There's additional information to properly assess this issue.
Projects
None yet
Development

No branches or pull requests

2 participants