Merge pull request #2163 from thornbill/fix-add-repo-form

Prevent default submit event on add plugin repo form
This commit is contained in:
Bill Thornton 2020-12-04 01:05:16 -05:00 committed by GitHub
commit dc50cacc83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,9 @@ export default function(view, params) {
dialogHelper.close(dialog);
});
dialog.querySelector('.newPluginForm').addEventListener('submit', () => {
dialog.querySelector('.newPluginForm').addEventListener('submit', e => {
e.preventDefault();
repositories.push({
Name: dialog.querySelector('#txtRepositoryName').value,
Url: dialog.querySelector('#txtRepositoryUrl').value,