diff --git a/news/3623.bugfix b/news/3623.bugfix new file mode 100644 index 00000000..a96e236c --- /dev/null +++ b/news/3623.bugfix @@ -0,0 +1,2 @@ +Do not autofocus on the comments form. +[maurits] diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 272fdd64..0de2ab03 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -75,6 +75,9 @@ class CommentForm(extensible.ExtensibleForm, form.Form): "author_username", "title", ) + # We do not want the focus to be on this form when loading a page. + # See https://github.com/plone/Products.CMFPlone/issues/3623 + enable_autofocus = False def updateFields(self): super().updateFields()