Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(collapse): no animations in production mode (#4044)
This is caused by the Terser `pure_getters` optimization. If used only once (ex. when importing ONLY `NgbCollapseModule`), the `reflow` function is broken: ```ts // source export function reflow(element: HTMLElement) { return (element || document.body).offsetHeight; } reflow(el); // inlined in production function(element) { element || document }(element) ``` Fixes #3972
- Loading branch information