Skip to content

Cannot read property 'settings' of undefined - When in invisible mode #31

Description

@Codesesh

When using version 0.4.0 of this module & using the invisible mode we get:

            if(typeof jQuery!='undefined' && typeof jQuery.fn.validate!='undefined') {
                var formValidator=jQuery(form).data('validator');
                var superHandler=formValidator.settings.submitHandler; // error happening here
                formValidator.settings.submitHandler=function(form) {
                    grecaptcha.execute();
                };

https://www.dropbox.com/s/2f4qbfjjd2298f8/Screenshot%202017-06-07%2010.29.22.png?dl=0

https://www.dropbox.com/s/zohx305s4vowabz/Screenshot%202017-06-07%2010.29.47.png?dl=0

default_size: "invisible" - Doesn't work, throws error as above.
default_size: "normal" - Works

Version 0.3.2 is working fine though.

I am using Silverstripe CMS/Framework 3.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions