Render inputs inline & results in a turbo frame

This commit is contained in:
Stanko K.R.
2025-08-21 14:50:51 +02:00
parent 831bc686de
commit 59a488eb9c
8 changed files with 76 additions and 93 deletions
@@ -1,5 +1,4 @@
import { Controller } from "@hotwired/stimulus"
import { isInput } from "helpers/html_helpers"
export default class extends Controller {
click(event) {
@@ -10,7 +9,7 @@ export default class extends Controller {
}
#shouldIgnore(event) {
return event.defaultPrevented || isInput(event.target)
return event.defaultPrevented || event.target.closest("input, textarea, lexical-editor")
}
get #isClickable() {