question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Time range selection (min, max) not working correctly

See original GitHub issue

We’re using ngx-material-timepicker in our project and came across an issue in range time selection. Here is input element for time-picker.

<input matInput type="text" [ngClass]="{'time myInput': true, smallFont: popupView}" formControlName="time" [ngxTimepicker]="picker" placeholder="Add time" min="09:00 am" max="03:00 pm" readonly>

<ngx-material-timepicker [ngClass]="{'timePicker': true}" (timeSet)="onTimeSet($event)" #picker></ngx-material-timepicker>

Expected: It should allow to select anytime between 09:00 am to 03:00 pm.

Problem: 12:00 pm to 12:59 pm can’t be selected. Event though it lies within the above range.

Two screenshots are attached to support above argument.

screenshot from 2018-09-25 09-38-44

screenshot from 2018-09-25 09-39-12

Thanks in advance for any help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Zaheer211commented, Oct 23, 2018

Hey Agranom! This issue seems resolved in version 2.8.0. Thanks for your great support, I’m closing it.

1reaction
Agranomcommented, Sep 25, 2018

I see. I’ll check it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Min Date and Max Date not working Angular Material Range ...
I'm trying to get the max to be the same day, I mean today. export class DateComponent implements OnInit, { minDate: Date; maxDate: ......
Read more >
Solved: Between slicer issue while capturing Min and Max v...
I have a report where I have a slicer on date which allows user to select date for a range. When I try...
Read more >
ion-datetime
While the min and max properties allow you to restrict date selection to a certain range, the monthValues , dayValues , yearValues ,...
Read more >
Date & Time Min & max values Example - Mobiscroll
Configuring minimum and maximum selectable values is great for reducing mistakes. Help people by limiting the selections for the task at hand. Use...
Read more >
setExtremes is not returning accurate min/max values for the ...
step 2: And now i move right handle to 14th may, I get e.min: ... seems to me that your problem it only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found