Description
We can remove the element-closest dependency as it is no longer needed. The dependency was added as a polyfill for IE11 back in 2018 see #3147
The function has been standard for most other browsers since 2015 and 2017 see
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
If we inspect what the actual dependency does, then we can see it also has a pollyfill for the element#matches function. This function has been support by modern browsers for even longer. See https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Description
We can remove the element-closest dependency as it is no longer needed. The dependency was added as a polyfill for IE11 back in 2018 see #3147
The function has been standard for most other browsers since 2015 and 2017 see
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
If we inspect what the actual dependency does, then we can see it also has a pollyfill for the element#matches function. This function has been support by modern browsers for even longer. See https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information