New issue

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

Error on handling "message" event, somehow connected with grecaptcha2 #500

Open
ru-web-designer opened this Issue Aug 29, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@ru-web-designer

ru-web-designer commented Aug 29, 2018

Summary

Looks like if grecaptcha2 by Google is present on the same page with uploadcare widget, it causes uncaught TypeError.

uploadcare.full.min.js:17 Uncaught TypeError: Cannot read property 'type' of null
    at uploadcare.full.min.js:17
    at dispatch (uploadcare.full.min.js:11)
    at m.handle (uploadcare.full.min.js:10)

image

How to reproduce

Just put uploadcare-widget (lastes 2.x or 3.x, doesn't matter) and Grecaptcha2 (https://www.google.com/recaptcha/api.js) on the same page. Uploadcare settings are:

var
  UPLOADCARE_LIVE = false,
  UPLOADCARE_AUTOSTORE = true,
  UPLOADCARE_PUBLIC_KEY = your_public_key;

Effects

TypeError itself. Reports in a console.

Potentially makes impossible to upload files, but this effect is kind of heisenbug.

Uploader dialog still opens and looks like its working proper way.

@Zmoki

This comment has been minimized.

Member

Zmoki commented Aug 30, 2018

@ru-web-designer thanks for the report! I'll try to reproduce that and return to you with an answer soon.

@Zmoki Zmoki assigned Zmoki and nd0ut and unassigned Zmoki Aug 30, 2018

@ru-web-designer

This comment has been minimized.

ru-web-designer commented Aug 31, 2018

@Zmoki is this will be a fix for 3.x only, or for 2.x too?

@nd0ut

This comment has been minimized.

Contributor

nd0ut commented Aug 31, 2018

@ru-web-designer We'll fix v2 in the near time too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment