Browse Source
Guard against parentNode being undefined when calling toggleEve… (#2295)
Guard against parentNode being undefined when calling toggleEvents
pull/2330/head
Artur Arseniev
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/dom_components/view/ComponentTextView.js
|
|
|
@ -161,8 +161,9 @@ export default ComponentView.extend({ |
|
|
|
|
|
|
|
while (el) { |
|
|
|
el.draggable = enable ? !1 : !0; |
|
|
|
// Note: el.parentNode is sometimes null here
|
|
|
|
el = el.parentNode; |
|
|
|
el.tagName == 'BODY' && (el = 0); |
|
|
|
el && el.tagName == 'BODY' && (el = 0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|