Files
fizzy/app/javascript/controllers/dispatch_event_controller.js
Alexander Zaytsev c977d03692 Use fire() instead of dispatch()
Addresses Copilot's feedback
2026-03-10 11:45:37 +01:00

10 lines
215 B
JavaScript

import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static values = { name: String }
fire() {
this.dispatch(this.nameValue, { target: document, prefix: false })
}
}