Add auto-save to the draft comment field
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user