meteor-tabular
meteor-tabular copied to clipboard
Templates specified by tmpl not being destroyed when row removed
When a tabular is destroyed it will only destroy the tmpl's that are still present in the view but if a row is removed from your tabular it's template(s) will not be destroyed as it's no longer in the view. This is very simple to repro:
- Add a simple template to your tabular data.
- Put a breakpoint or console.log in the Template.onDestroyed.
- Add a record to your collection so you have 1 item being displayed.
- Navigate away from your view and notice onDestroyed is called once.
- Go back to view your tabular. Now delete the record from your collection. Notice onDestroyed is not called.
- Navigate away from your view and notice onDestroyed is still not called.
Yes, we confirm that it also happens to us.