Sha256: 492deb847459db15c76ff26eafd80b37f7cfe47de993046c3df6d68fdf8f2237
Contents?: true
Size: 447 Bytes
Versions: 61
Compression:
Stored size: 447 Bytes
Contents
/* eslint-disable camelcase */ import { StreamActions } from '@hotwired/turbo' // TODO: move these to the avo_filters gem StreamActions.close_filters_dropdown = function () { document.querySelector('.filters-dropdown-selector').classList.add('hidden') } StreamActions.open_filter = function () { const id = this.getAttribute('unique-id') setTimeout(() => { document.querySelector(`[data-filter-id="${id}"] .pill`).click() }, 150) }
Version data entries
61 entries across 61 versions & 1 rubygems