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

Issue with Min and Max #326

Closed
sumit8640 opened this issue Apr 22, 2020 · 2 comments
Closed

Issue with Min and Max #326

sumit8640 opened this issue Apr 22, 2020 · 2 comments

Comments

@sumit8640
Copy link

Hi Team,
I have used below code for the date picker with min and max values, its works perfectly fine when clicked the first time and defaults to PM, but if you move out , click any where else and go back to the field, it defaults to AM whereas it should default to PM even though it does not let user select AM values still from user experience it is incorrect. Have used min as 12:00 pm and max as 11:59 pm. Please suggest.

      <mat-form-field class="col-md-6 col-xs-12">
        <mat-label>Time of Reading</mat-label>
        <input
          matInput
          placeholder="Time of Reading (PM)"
          required
          readonly
          [ngxTimepicker]="pmTimePicker"
          min="12:00 pm"
          max="11:59 pm"
          formControlName="time_of_reading"            
        />
        <ngx-material-timepicker #pmTimePicker [appendToInput]="true" 
        ></ngx-material-timepicker>
        <mat-error *ngIf="hasError('pm_recording.time_of_reading', 'required')">
          Time of Reading is required
        </mat-error>
      </mat-form-field>
@Agranom
Copy link
Owner

Agranom commented Apr 22, 2020

I see. Will fix it

@Agranom
Copy link
Owner

Agranom commented May 11, 2020

Fixed in v5.5.2

@Agranom Agranom closed this as completed May 11, 2020
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

2 participants