573 B
573 B
Dirty Submit
Introduced in GitLab 11.3.
Summary
Prevent submitting forms with no changes.
Currently handles input
, textarea
and select
elements.
Also, see the code within the GitLab project.
Usage
import dirtySubmitFactory from './dirty_submit/dirty_submit_form';
new DirtySubmitForm(document.querySelector('form'));
// or
new DirtySubmitForm(document.querySelectorAll('form'));