Skip to content

Commit

Permalink
Actually honor the autofocus setting
Browse files Browse the repository at this point in the history
This rectifies commits 1b1301d and
35c7ba8.

(cherry picked from commit af3b1f0)
  • Loading branch information
lelit authored and stevepiercy committed Aug 23, 2020
1 parent d80ef4e commit c92cf57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deform/templates/checkbox_choice.pt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<input tal:attributes="checked value in cstruct;
class css_class;
style style;
autofocus not repeat.choice.index;
autofocus not repeat.choice.index and autofocus;
attributes|field.widget.attributes|{};"
type="checkbox"
name="checkbox"
Expand Down
2 changes: 1 addition & 1 deletion deform/templates/radio_choice.pt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<input tal:attributes="checked value == cstruct;
class css_class;
style style;
autofocus not repeat.choice.index;
autofocus not repeat.choice.index and autofocus;
attributes|field.widget.attributes|{};"
type="radio"
name="${oid}"
Expand Down

0 comments on commit c92cf57

Please sign in to comment.