Sha256: cebf22839a10e63438c2e054d6c4b69533619f8bb342e9123cf6995c1d63b3ab
Contents?: true
Size: 342 Bytes
Versions: 15
Compression:
Stored size: 342 Bytes
Contents
import CheckboxSubmit from 'blacklight/checkbox_submit' const BookmarkToggle = (e) => { if (e.target.matches('[data-checkboxsubmit-target="checkbox"]')) { const form = e.target.closest('form') if (form) new CheckboxSubmit(form).clicked(e); } }; document.addEventListener('click', BookmarkToggle); export default BookmarkToggle
Version data entries
15 entries across 15 versions & 2 rubygems