Frontend Modules


Frontend Modules / js/forms/prevent-premature-submission / default

Class: default

Defined in: js/forms/prevent-premature-submission.ts:9

We sometimes want to perform a background task when an input element looses focus. If the focus loss is due to the user clicking on a submission button however, the corresponding form will be submitted before the background task is initiated. This class is a convenient wrapper for preventing this.

See here for more: https://github.com/digitalfabrik/integreat-cms/pull/2636