Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Append Square payments script if not exists#73

Merged
stephtaylor merged 2 commits intosquare:masterfrom
calebfaruki:master
Aug 31, 2020
Merged

Append Square payments script if not exists#73
stephtaylor merged 2 commits intosquare:masterfrom
calebfaruki:master

Conversation

@calebfaruki
Copy link
Copy Markdown
Contributor

@calebfaruki calebfaruki commented Aug 19, 2020

If the Square Payments Javascript library is loaded more than once, it will result in a ElementNotVisibleError for all the form fields. This is not an issue if your parent component is only rendered once. But if it is re-rendered for any reason, the Square payment form component will re-insert the payment script and break the form.

@stephtaylor
Copy link
Copy Markdown
Collaborator

Thanks for contributing to this!!

@Xabadu Xabadu linked an issue Aug 26, 2020 that may be closed by this pull request
@stephtaylor stephtaylor merged commit cb6d041 into square:master Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payment form script loaded multiple times

2 participants