Sha256: 8d8d9b10490be92ad65dfaf44070f66e96cb4d6bcdeaf68792aa32870a5ff15c
Contents?: true
Size: 404 Bytes
Versions: 256
Compression:
Stored size: 404 Bytes
Contents
import { Controller } from '@hotwired/stimulus' export default class extends Controller { static targets = ['modal'] close() { this.modalTarget.remove() document.dispatchEvent(new Event('actions-modal:close')) } delayedClose() { const vm = this setTimeout(() => { vm.modalTarget.remove() document.dispatchEvent(new Event('actions-modal:close')) }, 500) } }
Version data entries
256 entries across 256 versions & 1 rubygems