alps/compose.html: fix autofocus on wrong field

This commit is contained in:
Drew DeVault 2020-11-13 13:32:07 -05:00
parent 1d0630dde9
commit 1565a335db

View file

@ -24,11 +24,17 @@
value="{{.Message.ToString}}"
multiple
list="emails"
{{ if not .Message.To }} autofocus{{ end }}
{{ if not .Message.ToString }} autofocus{{ end }}
/>
<label>Subject</label>
<input type="text" name="subject" id="subject" value="{{.Message.Subject}}" {{ if .Message.To }} autofocus{{ end }}/>
<input
type="text"
name="subject"
id="subject"
value="{{.Message.Subject}}"
{{ if .Message.ToString }} autofocus{{ end }}
/>
<label>Attachments</label>
<input type="file" name="attachments" id="attachments" multiple>