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

Issues with validation using dateRange #2915

Open
4 tasks done
itajackass opened this issue Jun 13, 2024 · 1 comment
Open
4 tasks done

Issues with validation using dateRange #2915

itajackass opened this issue Jun 13, 2024 · 1 comment
Labels
State: Triage Tickets that need to be triaged. Type: Bug

Comments

@itajackass
Copy link

itajackass commented Jun 13, 2024

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

Hi, i think there is a bug using: dateRange: true.

When activated, I expected that the input field is valid only if I select a START and END dates. But it seems the plugin allow to select also only 1 date without errors...
I expected that if I choose only ONE date, on focus out the input must be cleared / empty

           const datetimepicker = new tempusDominus.TempusDominus(document.getElementById('input_date_range'), {
		dateRange: true,
		multipleDatesSeparator: " - ",
		display: {
			sideBySide: true
		}
	});

StackBlitz fork

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

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.

v6

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

it-IT

@itajackass itajackass added State: Triage Tickets that need to be triaged. Type: Bug labels Jun 13, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Tempus Dominus Jun 13, 2024
@itajackass itajackass changed the title Issues with validation Issues with validation using dateRange Jun 13, 2024
@hkvstore
Copy link
Contributor

hkvstore commented Jul 2, 2024

On the other hand, I believe the CSS during selecting the second date is wrong, is it intentional? I personally feel that the rounded border directions are reversed, e.g.

Screenshot 2024-07-02 170741

Screenshot 2024-07-02 170756

Screenshot 2024-07-02 170810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Triage Tickets that need to be triaged. Type: Bug
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants