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

Can not select max date&time. #795

Open
luckystar0506 opened this issue Aug 5, 2024 · 0 comments
Open

Can not select max date&time. #795

luckystar0506 opened this issue Aug 5, 2024 · 0 comments

Comments

@luckystar0506
Copy link

luckystar0506 commented Aug 5, 2024

Hi, I am using this date-time-picker component now.
But I have a issue now.

Here is my code.

      <mat-form-field>
        <input
          matInput
          [owlDateTime]="picker"
          (dateTimeChange)="onChangedDeadline($event.value)"
          [min]="minDate"
          [max]="maxDate"
          [placeholder]="'Deadline'"
          [value]="deadline"
          readonly>
        <owl-date-time
          #picker>
        </owl-date-time>
        <button
          mat-raised-button
          (click)="picker.open()">
        </button>
      </mat-form-field>

When I set the max, I can't select maxDate with spin button.
Please check my attached record. In this record the max was set to 19:00 Aug/10/2024
http://srecorder.com/s/13dvp
https://github.com/user-attachments/assets/9740aeb6-7e98-4344-9a7f-bd594a534042

After input the max time with keyboard, can select the max date and time.
But before that, it is impossible.

How can I resolve this?
Thanks and regards.

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