Sha256: f1b6d0d3feed51636c333c762e77403f3891dfd3f66f3bdd3c3e6f6179ae2bff
Contents?: true
Size: 466 Bytes
Versions: 16
Compression:
Stored size: 466 Bytes
Contents
const ButtonFocus = (e) => { // Button clicks should change focus. As of 10/3/19, Firefox for Mac and // Safari both do not set focus to a button on button click. // See https://zellwk.com/blog/inconsistent-button-behavior/ for background information if (e.target.matches('[data-toggle="collapse"]') || e.target.matches('[data-bs-toggle="collapse"]')) { e.target.focus() } } document.addEventListener('click', ButtonFocus) export default ButtonFocus
Version data entries
16 entries across 16 versions & 2 rubygems