mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#960 fix event handling for FF
- use cross browser `event.target` instead of IE-specific `event.srcElement`
This commit is contained in:
@@ -146,7 +146,7 @@ export class DataTableComponent implements OnInit, AfterViewChecked {
|
||||
|
||||
onImageLoadingError(event: Event) {
|
||||
if (event && this.fallbackThumbnail) {
|
||||
let element = <any> event.srcElement;
|
||||
let element = <any> event.target;
|
||||
element.src = this.fallbackThumbnail;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user