Skip to content

Commit 1c3f8bd

Browse files
committed
do not autofocus comment quote/edit
1 parent 08b2ff2 commit 1c3f8bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spirit/comment/forms.py

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def __init__(self, user=None, topic=None, *args, **kwargs):
6565
self.topic = topic
6666
self.mentions = None # {username: User, }
6767
self.polls = None # {polls: [], choices: []}
68+
# Do not autofocus (when there's initial/instance),
69+
# we don't know where the cursor should be,
70+
# and that'd need JS anyway
6871
self.fields['comment'].widget.attrs['placeholder'] = _("Write comment...")
6972

7073
def get_comment_hash(self):

0 commit comments

Comments
 (0)