ag-grid: IE and EDGE crash
I’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/ceolter/ag-grid/blob/master/CONTRIBUTING.md#question
Current behavior Using Angular 6 & latest version of ag-grid (18.0.1 I believe at the time of posting this)- after upgrading ag-grid from 17.1.1 to 18.x, whenever i navigate to a page that has ag-grid on it, the browser freezes up. I opened dev tools and managed to capture an error before it froze. The error said “onResize doesn’t exist” or something of this nature. My TS/JS is not using any resize functions what-so ever. This works fine on chrome but IE and edge no longer work. I reverted back to 17.1.1 and everything was working again. (Aside from the clunky crappy scrolling behavior in IE and EDGE when using a large grid (many columns) with a pinned column(s).
Expected behavior To load and not freeze/crash… I was hoping the update would improve IE and Edge performance, not do the opposite.
Minimal reproduction of the problem with instructions simply add an ag-grid onto an html page within an angular 5/6 application. Code Example: https://pastebin.com/ZQjU2NpF
Please tell us about your environment: VSCODE (NodeJS, CLI, Etc.), Angular 5/6 (Tried in both).
-
ag-Grid version: X.X.X 18.0.1, 18.1.0
-
Browser: Internet Explorer, MS Edge.
-
Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript, ES6/7 (Used), HTML. etc.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 9
- Comments: 28 (4 by maintainers)
I do believe it has to do with the new resizeObserver.js. With Firefox and IE ag-grid starts monitoring the resize using a MutationObserver:
this.mutationsObserver_.observe(document, { attributes: true, childList: true, characterData: true, subtree: true });
The monitoring of the attributes on the document level kills basically the performance, respectivelly freezes the browser.
We need an urgent fix for this! (just found the reason of the problem today!)
Hi,
Just to let you know that we are working in a solution for this, we are hoping to have it available in our next release, that should be available in the next 2/3 weeks.
I am afraid that for the time being the only solution would be to downgrade to v17 or to not combine ag-grid with ng-bootstrap
Thanks
@dominikg @ExDeaDguY
Your link is freezing in IE11 in my computer. Probably on a infinite loop. The problem is definitively not solved.
Can we reopen that issue please ?
still freezes in firefox ( ag-grid 18.1.2 / ng-bootstrap 2.2.0 )
https://angular-ng-bootstrap-ag-grid-fail-ymr3ut.stackblitz.io/
https://stackblitz.com/edit/angular-ng-bootstrap-ag-grid-fail-ymr3ut
console output:
Release 18.1.2 of ag-grid fixes this issue. Thanks for reporting this.
safari also freezes
Also ran into this issue on FF and Edge. Glad to hear you guys are working on it.
For anyone else out there, I was able to get the current release 18.1.0 working by commenting out the following lines. I’ve haven’t noticed any issues. I wouldn’t recommend doing this in a production app, luckily my app is still in development so this approach was favorable over downgrading while I wait for the next release.
dist\lib\resideObserver.js (lines 186-189)
@makinggoodsoftware
Just for your information, we use here: “bootstrap”: “^3.3.7”, “ngx-bootstrap”: “^3.0.1”,
And reverting to v16 solved the problem.
@ExDeaDguY opening https://angular-ng-bootstrap-ag-grid-fail-ymr3ut.stackblitz.io/ with firefox 61.01 (macos) and clicking on ‘toggle dropdown’ causes lots of console outputs with ‘too much recursion’ and the dropdown cannot be closed. see earlier comment
what did you do in your app to avoid that?
still freezes
Fully agree with @vitodata. Exactly the same case i have meet (angular 5.2.11, ag-grid 18.0.1/18.1.0, Firefox 61). Chrome works good, IE & Edge didn’t check. After commenting out these lines in ./lib/resizeObserver.js:
in FF everything works fine. I’m your strongest supporter in quickly finding a fix 😃