Files
fizzy/app/javascript/controllers/clicker_controller.js
T
Jorge Manrubia 7a97d978f5 Rename columns
2025-09-28 11:06:40 +02:00

12 lines
258 B
JavaScript

import { Controller } from "@hotwired/stimulus"
import { nextFrame } from "helpers/timing_helpers";
export default class extends Controller {
static targets = [ "clickable" ]
async click() {
await nextFrame()
this.clickableTarget.click()
}
}