Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update calls to textarea with the id option #2609

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading