Support » Plugins and Hacks » Dave's WordPress Live Search » Plugin throws javascript error in console on resize.

  • kjfrank

    (@kjfrank)


    When I resize my browser window I get this error in chrome developer console:

    “Uncaught TypeError: Cannot read property ‘left’ of null” and it is coming from “daves-wordpress-live-search.min.js”.

    I suspect that it is from here in the code:

    a.left += parseInt(DavesWordPressLiveSearchConfig.xOffset, 10);

    Any idea how to fix this?

    http://wordpress.org/extend/plugins/daves-wordpress-live-search/

Viewing 1 replies (of 1 total)
  • Plugin Author Dave Ross

    (@csixty4)


    Version 3.2 is coming out in a few minutes. It has a fix for this.

    That’s pretty much what the error was. If no search box had focus, a was null. I just put a guard condition around that code so it doesn’t try to reposition a search box that isn’t there.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin throws javascript error in console on resize.’ is closed to new replies.