Support » Plugin: Contact Form Clean and Simple » Cannot read property 'top' of undefined

  • Resolved l2uso

    (@l2uso)


    Not kind of a bug but an annoying console alert:

    Uncaught TypeError: Cannot read property ‘top’ of undefined
    jquery.validate.contact.form.js:88

    jQuery('html,body').animate({scrollTop: jQuery(id).offset().top},'slow');
    changed to
    if (jQuery(id).offset()) {
      	jQuery('html,body').animate({scrollTop: jQuery(id).offset().top},'slow');
    }

    First time I see this “error” so I presume it’s WP or jQuery new version’s “fault”
    Just for your consideration to include in next version.
    Keep the excelent work! We all luv ya!!!

    https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot read property 'top' of undefined’ is closed to new replies.