Skip to content

Minimum Date blocking all times on minimum date #2952

@Collectonian

Description

@Collectonian

Prerequisites

  • I have searched for duplicate or closed issues.
  • I have validated my setup against the latest version on StackBlitz.
  • I have read the contributing guidelines.
  • I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.

Describe the issue

When setting the minimum date to 15 minutes ago, the date time picker is not allowing for the selection of any time on the current date.

new tempusDominus.TempusDominus(document.getElementById('dateEffectivePicker'), { allowInputToggle: true, display: { buttons: { today: true, clear: false, close: true, }, sideBySide: true, toolbarPlacement: 'top', }, localization: { format: 'MM/dd/yyyy hh:mm T', }, restrictions: { minDate: new tempusDominus.DateTime().manipulate(-15, 'minutes'), maxDate: new tempusDominus.DateTime().manipulate(6, 'month'), } });

As you can see on the Stack Blitz, if you click on the hour, all times are blocked out until you change the date until tomorrow or beyond.

StackBlitz fork

https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-agzfkspm?file=index.js

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Firefox

What version of are you using? You can find this information from the sample StackBlitz.

6.9.4

What your browser's locale? You can find this information from the sample StackBlitz.

en-US

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions