From 84043fa72ca7f83ae9cde48ad670e6d5d16501a3 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Tue, 14 May 2019 14:34:33 -0500 Subject: Prevent form submit when Move is clicked --- app/views/shared/issuable/_sidebar.html.haml | 2 +- changelogs/unreleased/61795-fix-error-when-moving-issues.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/61795-fix-error-when-moving-issues.yml diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index 2c185549b24..63557c882f4 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -164,7 +164,7 @@ = dropdown_content = dropdown_loading = dropdown_footer add_content_class: true do - %button.btn.btn-success.sidebar-move-issue-confirmation-button.js-move-issue-confirmation-button{ disabled: true } + %button.btn.btn-success.sidebar-move-issue-confirmation-button.js-move-issue-confirmation-button{ type: 'button', disabled: true } = _('Move') = icon('spinner spin', class: 'sidebar-move-issue-confirmation-loading-icon') diff --git a/changelogs/unreleased/61795-fix-error-when-moving-issues.yml b/changelogs/unreleased/61795-fix-error-when-moving-issues.yml new file mode 100644 index 00000000000..6812baa07c3 --- /dev/null +++ b/changelogs/unreleased/61795-fix-error-when-moving-issues.yml @@ -0,0 +1,5 @@ +--- +title: Remove unintended error message shown when moving issues +merge_request: 28317 +author: +type: fixed -- cgit v1.2.1