Skip to content

Can not select max date&time. #795

Open
@luckystar0506

Description

@luckystar0506

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions