Commit 1b3b4f4e authored by Phil Hughes's avatar Phil Hughes

Fixed bug with merge immediately button would not work

This was caused by using 'this' in a fat arrow function, so 'this' would not equal the jQuery element
parent 125abfd4
......@@ -30,7 +30,7 @@
.off('click', '.js-merge-dropdown a')
.on('click', '.js-merge-dropdown a', (e) => {
e.preventDefault();
$(this).closest('form').submit();
$(e.target).closest('form').submit();
});
if ($('.rebase-in-progress').length) {
merge_request_widget.rebaseInProgress();
......
---
title: Fixed bug where links in merge dropdown wouldn't work
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment