Open shabbirdhangot opened 2 years ago
The headerHeight
property is declared as number
only.
But later in the code it is compared against the "auto"
string and that's therefore a valid value.
It should be declared like the rowHeight
property, so:"
@Input() headerHeight: number | 'auto' | ((row?: any) => number) = 30;
Dropping a PR...
I'm submitting a ...
Current behavior
Setting headerHeight auto working in the dev environment (ng serve) but throwing error while production build (ng build --prod)
Expected behavior
It should work in both environment.
What is the motivation / use case for changing the behavior?
I have long header for my table. In that case headerHeight auto is best option for me.
Please tell us about your environment:
Table version:
20.0.0
Angular version:
12.2.12
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
-all