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

DateTimePicker : Whenever the minDate is greater than today, it appears in the field even though it is supposed to be null by default #135

Open
IKIKN opened this issue Aug 14, 2020 · 0 comments

Comments

@IKIKN
Copy link

IKIKN commented Aug 14, 2020

Hi,

Let's say I have a field called "closingDate", and use this code :

$('.closing-date').datetimepicker({
format: 'DD/MM/YYYY',
locale: 'FR',
minDate: '20201231'
})

It will automatically be shown in the textbox hosting the date, even though it has not been set. But if the date is not greater than today, it will then act like it should, and show an empty field by default.

What can I do to always have this behaviour ? It is dangerous to have a date displayed by default because if users do not pay attention, they will save dates that they did not wanted to set in the first place in the db.

Thanks !

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