debian-mirror-gitlab/doc/development/new_fe_guide/modules/dirty_submit.md
2018-12-13 13:39:08 +05:30

589 B

Dirty Submit

Introduced in GitLab 11.3.
dirty_submit

Summary

Prevent submitting forms with no changes.

Currently handles input, textarea and select elements.

Usage

import dirtySubmitFactory from './dirty_submit/dirty_submit_form';

new DirtySubmitForm(document.querySelector('form'));
// or
new DirtySubmitForm(document.querySelectorAll('form'));