Skip to content

Commit

Permalink
chore: use readonly instead of disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Oct 12, 2023
1 parent 5618db0 commit 0379239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/apps/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2 class="font-bold text-2xl font-headline mb-4 dark:text-white text-center">
</label>
<input
{{if .Disabled}}tabIndex="-1"{{end}}
{{ if not (eq .Name "") }}disabled{{end}}
{{ if not (eq .Name "") }}readOnly{{end}}
type="text"
name="name"
value="{{.Name}}"
Expand Down

0 comments on commit 0379239

Please sign in to comment.