I have an ember light table and and a sort by filter. When the filter is triggered the table does not move back to the top position.
var scroll_pos=(0);
$('html, body, #lt-body').animate({scrollTop:(scroll_pos)}, 2000)
I tried giving the parent div an Id and pulling it in so the page would reset to the top and the table. I'm very new to ember and cannot figure out how to make the table scroll to the top when the filter is used.
Aucun commentaire:
Enregistrer un commentaire