From ea140dc3b457b4f108907c4caf2918a96dcbee28 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 13 Nov 2018 15:24:32 -0500 Subject: [PATCH] Fix accidental scroll when saving/deleting CiviMail draft --- ang/crmUi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/crmUi.js b/ang/crmUi.js index 70da3871c8..216640ce90 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -876,7 +876,7 @@ link: function (scope, element, attrs) { scope.ts = CRM.ts(null); - element.find('.crm-wizard-buttons button').click(function () { + element.find('.crm-wizard-buttons button[ng-click^=crmUiWizardCtrl]').click(function () { // These values are captured inside the click handler to ensure the // positions/sizes of the elements are captured at the time of the // click vs. at the time this directive is initialized. -- 2.25.1