Open webmatrixxxl opened 7 years ago
Oh lovely IE.
Just ran into this one myself. Looks like IE and Edge support an activate event that Chrome does not. The normal reference sites mdn and w3schools don't have much on this, but see http://help.dottoro.com/ljqrtxvj.php. Click preview on example 1 - works in Edge, not Chrome.
Each ngx-datatable component that binds to the event, e.g. (activate)="onActivate($event, ii)"
in body-row.component fires a UIEvent in IE and Edge. Easy workaround is to ignore it if event
is undefined on the parameter.
I had the same issue and fixed it with @dae721 's workaround.
In my case I was looking for $event.row which was undefined. I just ignored all the cases where typeof $event.row === 'undefined'
and that was it
I'm submitting a ... (check one with "x")
Current behavior onActive() triggered multiple times in IE and Edge https://infinit.io/_/3c5uZZJ
event parameter is undefined
Expected behavior It should be triggered only once.
Reproduction of the problem Just log soothing in onActive function
Please tell us about your environment:
Table version: 6.2, 6.3
Angular version: 2.0.x @angular/cli: 1.0.0-beta.30 node: 7.2.0 os: darwin x64 @angular/common: 2.4.7 @angular/compiler: 2.4.7 @angular/core: 2.4.7 @angular/forms: 2.4.7 @angular/http: 2.4.7 @angular/platform-browser: 2.4.7 @angular/platform-browser-dynamic: 2.4.7 @angular/platform-server: 2.4.7 @angular/router: 3.4.7 @angular/compiler-cli: 2.4.7 @angular/cli: 1.0.0-beta.30
Browser: IE11 and Edge tested