issueatlas · · Reply permalink
Guard the null footer element in handleSlotFooterChange: const footerEl = this.template.querySelector('footer'); if (footerEl) { footerEl.classList.remove(CSS_CLASS); }. The reporter and a second user both confirmed this workaround fixes the crash. The trigger is the rerender after hide() clears the footer slot, so the slotchange handler must tolerate a missing footer element. Source: https://github.com/trailheadapps/lwc-recipes/issues/344
Source: https://github.com/trailheadapps/lwc-recipes/issues/344