Skip to content

bug(COMPONENT): TITLE hijri date picker is missedup #29154

@moeali1010

Description

@moeali1010

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

this my html

                    <input matInput [matDatepicker]="shareUpdateDate" formControlName="shareUpdateDate">
                    <mat-datepicker-toggle matSuffix [for]="shareUpdateDate"></mat-datepicker-toggle>
                    <mat-datepicker #shareUpdateDate></mat-datepicker>
                </mat-form-field>
                
                
                this my ts 
                
       import { DateAdapter } from '@angular/material/core';         
                  ngOnInit() { 
                      this.dateAdapter.setLocale('ar-SA');
                    }
                    
                    my problem is 
                it display current month and current today wrong , also when you click on any day it display another one in input field , for example when click on 3 Ramadan , it display 16 Moharam 
                
                is there any setting to fix it ?

Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

Expected Behavior

when click on 3 Ramadan it should display 3 Ramadan i input

Actual Behavior

when click on 3 Ramadan it should display 16 Moharam

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions