Skip to content

Commit 8397bc2

Browse files
Vincent BoefVincent Boef
authored andcommitted
ISSUE: 3782 (#3782)
e can be null in Firefox. This gives the styles is null error. Add this extra !== null check and the error is gone.
1 parent 47c77de commit 8397bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/services/ui-grid-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
910910
e = elem[0];
911911
}
912912

913-
if (e) {
913+
if (e && e !== null) {
914914
var styles = getStyles(e);
915915
return e.offsetWidth === 0 && rdisplayswap.test(styles.display) ?
916916
s.swap(e, cssShow, function() {

0 commit comments

Comments
 (0)