Prefer helper

This commit is contained in:
Jason Zimdars
2025-10-16 13:29:41 -05:00
parent 626aa0ea8a
commit f224656d1e
@@ -1,13 +1,16 @@
import { Controller } from "@hotwired/stimulus"
import { nextFrame } from "helpers/timing_helpers";
export default class extends Controller {
static classes = [ "collapsed", "noTransitions" ]
static targets = [ "column", "button" ]
connect() {
async connect() {
this.#disableTransitions()
this.#restoreColumns()
requestAnimationFrame(() => this.#enableTransitions())
await nextFrame()
this.#enableTransitions()
}
toggle({ target }) {