Redirect to cards when searching by card id

This commit is contained in:
Jorge Manrubia
2025-09-30 13:44:51 +02:00
parent 5b52e90e76
commit 1b6b82a6cc
7 changed files with 56 additions and 23 deletions
@@ -2,6 +2,7 @@ import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
connect() {
this.element.addEventListener("turbo:submit-end", () => this.element.remove(), { once: true } )
this.element.requestSubmit()
}
}
@@ -76,6 +76,7 @@ export default class extends Controller {
const autofocusElement = element.querySelector("[autofocus]")
autofocusElement?.focus()
autofocusElement?.select()
}
#hideItem(element) {