0
votes

Suppose I have a page A with Mat form field and I navigate to page B via routerlink and I press back button on the browser top/mobile, Some of Css and classes of mat form field are not loaded(like .mat-primary .mat-form-field-type-mat-input .mat-form-field-appearance-fill .mat-form-field-can-float .mat-form-field-has-label .mat-form-field-hide-placeholder) How can it be fixed and possible Expaination. (This error is not produced when the page reloads(Like with href).

Image of component A when loaded. enter image description here

Image of Component A when its loaded after routerLink and Back button enter image description here

1

1 Answers

0
votes

Finally fix after solving the console error : A MatDatepicker can only be associated with a single input.