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:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user