fix turbo on dashboard + optimize a few more things.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Controller } from "/vendor/hotwired/stimulus.js";
|
||||
|
||||
export default class extends Controller {
|
||||
static targets = ["content"];
|
||||
|
||||
toggle(event) {
|
||||
event.preventDefault();
|
||||
const hidden = this.contentTarget.classList.toggle("hidden");
|
||||
event.currentTarget.setAttribute("aria-expanded", String(!hidden));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user