Have I already thanked you for a great module? :-)
When using Use anonymous checkout as option to login form, the login form contains two radio buttons that uses Drupal javascript states to show the login button OR this module's continue button. The problem is that both buttons remain in the DOM and that the first one will be triggered when pressing enter.
Example: If the value of the radio buttons equals No (You can create an account later), only the username / email field and the continue button are visible, the password field and login button are hidden. But when the user submits the form by pressing enter, the login button is triggered and the user will be prompted to enter a password.
I propose to use AJAX to update the form instead of using javascript states to hide elements.
Comment | File | Size | Author |
---|---|---|---|
#1 | use_ajax_instead_of_javascript_states-2392797-1.patch | 5.86 KB | lmeurs |
Comments
Comment #1
lmeurs CreditAttribution: lmeurs commentedAttached a patch!
Comment #2
opdaviesThe patch no longer applies to the latest dev version of the module.