Add auto-save to the draft comment field

This commit is contained in:
Kevin McConnell
2025-02-13 15:16:42 +00:00
parent 85749687f7
commit cd9fce9b89
2 changed files with 16 additions and 2 deletions
@@ -0,0 +1,13 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static outlets = [ "auto-save" ]
change(event) {
this.autoSaveOutlet.change(event)
}
submit() {
this.autoSaveOutlet.submit()
}
}