WordPress.org

Forums

Contact Form Clean and Simple
[resolved] Cannot read property 'top' of undefined (2 posts)

  1. l2uso
    Member
    Posted 1 year ago #

    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/

  2. megnicholas
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for tip :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form Clean and Simple
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic