Sha256: d8b9892ad6d89069e60eae9deb71f3dcfeb16efd000a6312c57f6fff4346eb2f
Contents?: true
Size: 461 Bytes
Versions: 6
Compression:
Stored size: 461 Bytes
Contents
import { Controller } from "@hotwired/stimulus" // Connects to data-controller="slim-select" export default class extends Controller { connect() { this.slimSelect = new SlimSelect({ select: this.element }) this.element.setAttribute("data-action", "turbo:morph-element->slim-select#reconnect") } disconnect() { this.slimSelect.destroy() this.slimSelect = null } reconnect() { this.disconnect() this.connect() } }
Version data entries
6 entries across 6 versions & 1 rubygems