Closed dashboard widget causing JavaScript error (possible fix enclosed)
-
If I close/collapse the dashboard widget accordion then the wpMandrill script call to jQuery Flot throws an error which causes other dashboard widgets to break and not render.
Steps to reproduce:
1. Login to admin dashboard with wpMandrill installed and active
2. Open JavaScript console
3. Close/collapse wpMandrill’s admin dashboard accordion
4. Refresh page
5. Console error expected:Uncaught Invalid dimensions for plot, width = 0, height = 400 jquery.flot.js:711
In
wpmandrill.php
@ line 1212 adding an inline style ofwidth:100%
to#filtered_recent
appears to alleviate the issue.Please update the plugin accordingly to mitigate the chances this plugin breaks other plugins.
- The topic ‘Closed dashboard widget causing JavaScript error (possible fix enclosed)’ is closed to new replies.