Sha256: 0bec5bdeb4c18126be4b3937ee5a17e826317064b3a2c0dde1dc86d33a48d16b
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
const ButtonFocus = (() => { document.addEventListener('click', (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() } }) })() export default ButtonFocus
Version data entries
5 entries across 5 versions & 1 rubygems