debian-mirror-gitlab/doc/development/new_fe_guide/modules/dirty_submit.md
2021-09-04 01:27:46 +05:30

798 B

stage group info
none unassigned To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments

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'));