meteor-admin icon indicating copy to clipboard operation
meteor-admin copied to clipboard

minor jQuery issue - scrollTop

Open manueltimita opened this issue 9 years ago • 1 comments

This bit of code:

$('html, body').animate({  
  scrollTop: $("#kAdminActionCenter").offset().top 
}, 700);  

...throws an error: "Uncaught TypeError: Cannot read property 'top' of undefined". I guess it is because the form template is not yet rendered when the selector #kAdminActionCenter is being passed to jQuery.

Anyway, excellent package! The first I can properly integrate in my app. No unnecessary bloat, does everything you expect it to do, and no dependency on a specific router (which would be overkill anyway when all you want to do is edit/delete documents).

Manuel

manueltimita avatar Sep 08 '15 22:09 manueltimita

The above seems to only happen if the package is loaded inside another smart package. With meteor add everything works fine.

manueltimita avatar Sep 08 '15 23:09 manueltimita