Skip to content
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

formElement.submit is not a function #589

Open
johnsonc opened this issue Jan 11, 2017 · 1 comment
Open

formElement.submit is not a function #589

johnsonc opened this issue Jan 11, 2017 · 1 comment

Comments

@johnsonc
Copy link
Contributor

Embedded the login form into a template, login popup returns valid accessTokens and status shows connected.
However the per-popup screen keeps waiting and i do not go into the main screen.

browser console:
Uncaught TypeError: formElement.submit is not a function
at VM6317 facebook.js:74
at v.__wrapper (all.js:90)
at all.js:87
at Object.la [as _xdRecv] (all.js:112)
at all.js:112
at Object.ra [as onMessage] (all.js:85)
at all.js:75
at all.js:36
at all.js:36

I think this is because formElement is pointing to the window, which does not have a submit action. I think the placement of the embeddable code is the culprit AFAICT.

@krzysztof-adamski
Copy link

this help
add document.body.appendChild(formElement);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants