mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
import debounce from "debounce";
|
|
|
|
// Connects to data-controller="form"
|
|
export default class extends Controller {
|
|
initialize() {
|
|
this.submit = debounce(this.submit.bind(this), 300)
|
|
}
|
|
|
|
submit() {
|
|
this.element.requestSubmit();
|
|
}
|
|
}
|