lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton
MIT License
129 stars 50 forks source link

Fix select-all js error #392

Closed dgvirtual closed 1 year ago

dgvirtual commented 1 year ago

Current code is trying to set event listener on element .select-all even if it is not present in the page, thus firing errors in console. The change makes the event listener conditional on the presence of the element.