← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~twom/launchpad:fix-affirmation-focus into launchpad:master

 

Tom Wardill has proposed merging ~twom/launchpad:fix-affirmation-focus into launchpad:master.

Commit message:
Don't focus a control that's at the bottom of the screen

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/406934
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/launchpad:fix-affirmation-focus into launchpad:master.
diff --git a/lib/lp/registry/browser/codeofconduct.py b/lib/lp/registry/browser/codeofconduct.py
index 393215d..ea3165c 100644
--- a/lib/lp/registry/browser/codeofconduct.py
+++ b/lib/lp/registry/browser/codeofconduct.py
@@ -167,6 +167,8 @@ class CodeOfConductSetView(LaunchpadView):
 class AffirmCodeOfConductView(LaunchpadFormView):
     """Add a new `SignedCodeOfConduct` via affirmation."""
 
+    focusedElementScript = None
+
     class schema(Interface):
         """Schema for affirming a code of conduct."""