Skip to content

Commit

Permalink
Remove incorrect type from edit user name input
Browse files Browse the repository at this point in the history
This was a mistake in #2497. There is no such input type as "name" - it
was a copy & paste error. In this case there's no need to specifiy a
type at all; we can just rely on the default "text" type for the `input`
component [1].

[1]: https://components.publishing.service.gov.uk/component-guide/input#specific_input_type
  • Loading branch information
floehopper committed Nov 10, 2023
1 parent f384fbe commit 10f6199
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/views/users/names/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
text: "Name"
},
name: "user[name]",
type: "name",
id: "user_name",
value: @user.name,
autocomplete: "off",
Expand Down

0 comments on commit 10f6199

Please sign in to comment.