Sha256: c39dcc9b3e53349a7cb445121cc8d86b5e9890589f93d8a528dd8d562ca8c406
Contents?: true
Size: 356 Bytes
Versions: 9
Compression:
Stored size: 356 Bytes
Contents
import { Controller } from "@hotwired/stimulus" export default class extends Controller { static targets = [ "menu" ] show() { this.menuTarget.show() } showModal() { this.menuTarget.showModal() } close() { this.menuTarget.close() } closeOnClickOutside({ target }) { if (target.nodeName === "DIALOG") this.close() } }
Version data entries
9 entries across 9 versions & 1 rubygems