-
Notifications
You must be signed in to change notification settings - Fork 162
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
[Angular 16] Angular 16.2.1. breaks the styling of the datetimepicker component #372
Comments
It seems the material styles for the date picker don't get injected. If you have a standard mat-datepicker implemented and load that, after viewing it, this component inherits the injected styles and looks correct again. There seems to be something in material now known as the "Tokens API" and the datepicker was updated to use it between 16.1 and 16.2 See commit: angular/components@c5af860 Not being familiar in depth with material component building, I didn't feel confident trying to figure out a patch for the changes. What I did as a hack to avoid needing to down-level my main material library was to place a standard component on the page where the datetime picker component was used, style it absolute and off screen, hooked it with In the template
In the component TS file (just the relevant bits)
This brings the styles into the view and the ngx datetime picker loads correctly, at least in my scenario. |
duplicate of #348 |
Angular 16.2.1. removes the complete styling of the datetimepicker component. In version 16.0.1. everything is working fine.
See this stackoverflow post
The text was updated successfully, but these errors were encountered: