Model menus, modal edit and layout improvements
Some checks failed
/ Run tests (push) Successful in 2m44s
/ Run system tests (push) Failing after 2m43s
/ Build, push and deploy image (push) Successful in 4m3s

This commit is contained in:
david 2024-11-23 19:10:09 +01:00
parent 7b0f05a448
commit 70500c49a1
35 changed files with 1079 additions and 148 deletions

View file

@ -0,0 +1,16 @@
import { Controller } from "@hotwired/stimulus"
// Connects to data-controller="dropdown-menu"
export default class extends Controller {
connect() {
const x = this.element
this.element.addEventListener("turbo:click", e => {
console.log("turbo visit dropdown", e, this.element)
this.element.removeAttribute("open");
})
this.element.addEventListener("turbo:submit-start", e => {
console.log("turbo submit dropdown", e, this.element)
this.element.removeAttribute("open");
})
}
}