Sha256: fd14c3f28ac6ae7274b60f1f9faa3ae1df196aaadbca63bafd0d4aef406741d1
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
import { Controller } from "@hotwired/stimulus" import debounce from "libraries/debounce" import formRequestSubmitPolyfill from "libraries/form-request-submit-polyfill" export default class extends Controller { submitForm = debounce(function() { this.element.requestSubmit() }.bind(this), this.debounceTime) requestSubmit() { this.submitForm() } submit() { this.submitForm() } get debounceTime() { return this.element.dataset.debounceTime || 0 } }
Version data entries
6 entries across 6 versions & 1 rubygems