Skip to content

Commit

Permalink
Merge pull request #2609 from alphagov/textarea-id
Browse files Browse the repository at this point in the history
Update calls to textarea with the id option
  • Loading branch information
andysellick authored Jan 22, 2025
2 parents 2374292 + 5daa48a commit 426c49a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ GEM
govuk_personalisation (1.1.0)
plek (>= 1.9.0)
rails (>= 6, < 9)
govuk_publishing_components (47.0.0)
govuk_publishing_components (50.0.0)
govuk_app_config
govuk_personalisation (>= 0.7.0)
kramdown
Expand Down Expand Up @@ -250,7 +250,8 @@ GEM
i18n (1.14.6)
concurrent-ruby (~> 1.0)
io-console (0.8.0)
irb (1.14.3)
irb (1.15.1)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.9.1)
Expand Down Expand Up @@ -542,6 +543,9 @@ GEM
ast (~> 2.4.1)
racc
plek (5.2.0)
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
prometheus_exporter (2.2.0)
webrick
pry (0.14.2)
Expand Down
4 changes: 2 additions & 2 deletions app/views/sections/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
text: "Change note",
},
name: "section[change_note]",
id: "section_change_note",
textarea_id: "section_change_note",
value: section.change_note,
rows: 5,
})
Expand All @@ -110,7 +110,7 @@
},
hint: "Adding a new section is always a major update. This will be publicly viewable on GOV.UK.",
name: "section[change_note]",
id: "section_change_note",
textarea_id: "section_change_note",
value: section.change_note,
rows: 5,
} %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/sections/withdraw.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
text: "Change note",
},
name: "section[change_note]",
id: "section_change_note",
textarea_id: "section_change_note",
value: section.change_note,
rows: 5,
})
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_govspeak-editor.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div class="app-c-govspeak-editor__textarea">
<%= render "govuk_publishing_components/components/textarea", {
name: name,
id: id,
textarea_id: id,
rows: rows,
value: value,
error_items: error_items,
Expand Down

0 comments on commit 426c49a

Please sign in to comment.