We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libraries/objectDefaultFiles/object.js line 373 elt is undefined.
libraries/objectDefaultFiles/object.js
Current fix I have for this is
diff --git a/libraries/objectDefaultFiles/object.js b/libraries/objectDefaultFiles/object.js index f5ff01b..fd28643 100755 --- a/libraries/objectDefaultFiles/object.js +++ b/libraries/objectDefaultFiles/object.js @@ -372,6 +372,14 @@ // if it wasn't unaccepted, dispatch a touch event into the page contents var elt = document.elementFromPoint(eventData.x, eventData.y) || document.body; + if (!elt) { + console.warn('this is broken', document); + elt = { + dispatchEvent: function() { + }, + }; + } + function forElementAndParentsRecursively(elt, callback) { callback(elt); if (elt.parentNode && elt.parentNode.tagName !== 'HTML' && elt.parentNode !== document) {
which drops this early event
The text was updated successfully, but these errors were encountered:
No branches or pull requests
libraries/objectDefaultFiles/object.js
line 373 elt is undefined.Current fix I have for this is
which drops this early event
The text was updated successfully, but these errors were encountered: