-
Notifications
You must be signed in to change notification settings - Fork 517
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation bug by compilig with Angular 5 in production mode on Firefox #168
Comments
Does this happen on the previous version of FF? (57) I noticed some weirdness with the latest version as well (although, not that particular bug). |
I don't know. Because of the Angular command "ng serve --prod":
This is the error message: It crashes on Firefox and Chrome. |
Hmm the display bug is gone for some reason 馃樀 But the shift-toward animation looks different, Strange bugs 馃槗 |
Which line does it occur on? (Turn off minification for prod for now?) |
I need to see the line it occurs on in the unminified version.... (particularly how it relates to this library) |
It occurs only at the minified version, The display bug occurs also randomly. But the animation "shift-toward" for example, |
This shows the animation differences of "shift-toward" between production and no-production: |
It appears to be transitioning from the top-left of the document in the prod version. But I really have no idea how to fix this since it's so specific to your build Try adding createPopperInstanceOnInit: true as an option? |
Yeah right, |
Did you try that option? |
Same as before, |
I can't download it right now, can later tonight Try inspecting the HTML source to see what it's doing? |
Okay good, |
I've downloaded your files and can reproduce it when using the
Some of these could be a problem? EDIT: Okay yeah... Angular's minification process stuffs the library up, probably mistakenly removing code that it thinks isn't necessary but actually is 馃槗 . I just saved the minified output file from Angular and tested in a tab, and the issue occurred, whereas unpkg's one is fine, despite being the exact same thing. I really couldn't be bothered checking what's actually different between the two, but here's a paste: Angular (min, then prettified): https://pastebin.com/8wxtutUP Solution for now, I guess, would be to use the CDN link instead of bundling it with Angular EDIT 2: LOL! I found the issue. It removes this line:
It triggers document reflow which is required for it not to transition from the top left. The minifier thinks it's unnecessary because it's not being saved as a reference, but actually is necessary... I think I can solve this issue so that minifiers don't get confused. |
This should be fixed in this.popper.offsetHeight is now function reflow(popper) {
void popper.offsetHeight
}
reflow(this.popper) |
Thank you good to hear 馃馃 |
Hey there 馃
When I compiling my Angular Application with --prod flag,
I have this animation issue on Firefox:
Without the --prod flag it works perfectly.
I'm using:
I haven't this Bug on Chrome.
The text was updated successfully, but these errors were encountered: