Commits

Gregory Petukhov  committed 4fbe28b

Change default select of option element in form extension

  • Participants
  • Parent commits 63c804b

Comments (0)

Files changed (1)

File grab/ext/form.py

             if elem.tag == 'select':
                 if fields[elem.name] is None:
                     if len(elem.value_options):
-                        fields[elem.name] = elem.value_options[-1]
+                        fields[elem.name] = elem.value_options[0]
 
             if getattr(elem, 'type', None) == 'radio':
                 if fields[elem.name] is None: