Fix: show updated values in the column form after saving

This removes the data turbo permanent attribute and instead, prevent the dialog closing
automatically (so that a page refresh does not make you lose context)

https://fizzy.37signals.com/5986089/cards/2300/
This commit is contained in:
Jorge Manrubia
2025-10-16 16:31:32 +02:00
parent f4bd7d7a00
commit f18cda45bd
4 changed files with 11 additions and 3 deletions
@@ -43,4 +43,11 @@ export default class extends Controller {
closeOnClickOutside({ target }) {
if (!this.element.contains(target)) this.close()
}
preventCloseOnMorphing(event) {
if (event.detail?.attributeName === "open") {
event.preventDefault()
event.stopPropagation()
}
}
}