Addepar / ember-table

https://opensource.addepar.com/ember-table/
Other
1.69k stars 352 forks source link

fix sticky-polyfill causing crash on destroy #1118

Closed lukasnys closed 1 month ago

lukasnys commented 1 month ago

When a ember-table is initially rendered without a tfoot, and a tfoot is added after the initial render (e.g. due to a loading state), the table will cause a crash on destroy.

This happens because the TABLE_POLYFILL_MAP does not have an entry for the specific tfoot element and thus, we call .destroy() on undefined.