Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Save and Continue button disabled for credit card payments - Rails 5.2.0 #202

Closed
masonjeffreys opened this issue Jan 4, 2019 · 0 comments

Comments

@masonjeffreys
Copy link
Contributor

When using this gem in a project with Rails 5.2.0, I noticed that the "Save and Continue" button to submit credit card information using the Braintree hosted fields was disabled. This applies to the credit card payment method.

I tracked the issue to a call to $.rails.enableFormElement. This method likely exists for people that are using older versions of Rails and jquery-ujs. However, at Rails 5.1.0, jquery-ujs was "adapted" into the rails core as rails-ujs. rails-ujs has a slightly different way of enabling elements.

Thanks,
Jeff

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

No branches or pull requests

2 participants