Title: Plugin throws javascript error in console on resize.
Last modified: August 20, 2016

---

# Plugin throws javascript error in console on resize.

 *  [kjfrank](https://wordpress.org/support/users/kjfrank/)
 * (@kjfrank)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-throws-javascript-error-in-console-on-resize/)
 * 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/](http://wordpress.org/extend/plugins/daves-wordpress-live-search/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dana Ross](https://wordpress.org/support/users/csixty4/)
 * (@csixty4)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-throws-javascript-error-in-console-on-resize/#post-3380048)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/daves-wordpress-live-search_daad6f.
   svg)
 * [Dave's WordPress Live Search](https://wordpress.org/plugins/daves-wordpress-live-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/daves-wordpress-live-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/daves-wordpress-live-search/)
 * [Active Topics](https://wordpress.org/support/plugin/daves-wordpress-live-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/daves-wordpress-live-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/daves-wordpress-live-search/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dana Ross](https://wordpress.org/support/users/csixty4/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-throws-javascript-error-in-console-on-resize/#post-3380048)
 * Status: not resolved