Widget: fix broken iframe detection

This commit is contained in:
Raphael Michel
2018-03-20 12:27:56 +01:00
parent 2db1e6b596
commit 879eb6ee9f
2 changed files with 7 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ class ContactForm(forms.Form):
help_text=_('Please enter the same email address again to make sure you typed it correctly.')
)
if self.request.session.get('iframe_session', False):
if not self.request.session.get('iframe_session', False):
# There is a browser quirk in Chrome that leads to incorrect initial scrolling in iframes if there
# is an autofocus field. Who would have thought… See e.g. here:
# https://floatboxjs.com/forum/topic.php?post=8440&usebb_sid=2e116486a9ec6b7070e045aea8cded5b#post8440