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

clear button clears date, but copies old value to other empty date in input-range #2693

Open
andyo22 opened this issue Mar 27, 2024 · 0 comments

Comments

@andyo22
Copy link

andyo22 commented Mar 27, 2024

Expected behaviour

Clicking the clear button should NOT copy the old date value to the other empty date in an input-daterange setup. The other empty date should remain empty, just like the behavior in version 1.9.0.

Actual behaviour

Clicking the clear button clears date, but copies old value to other empty date in input-daterange

Datepicker version used

1.10.0

Example code

Not the full code, but here is how the datepicker is applied to the input-daterange:

// FYI: config is unchanged since moving to 1.10.0 from working version 1.9.0
$('.input-daterange').datepicker({
format: "mm/dd/yyyy",
clearBtn: true,
forceParse: true,
autoclose: true,
todayHighlight: true,
setDate: new Date()
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant