Skip to content

Commit

Permalink
Remove unnecessary id
Browse files Browse the repository at this point in the history
This was unused and may cause accessibility concerns if there is more than one recaptcha on the page due to multiple elements with the same id
  • Loading branch information
jcoyne committed Jan 24, 2024
1 parent d8172d6 commit 7866ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Next
* Add key setup to v3 example in README
* Remove unnecessary id from textarea - This was unused and may cause accessability concerns if there is more than one recaptcha on the page due to multiple elements with the same id

## 5.16.0
* Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`
Expand Down
2 changes: 1 addition & 1 deletion lib/recaptcha/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def self.recaptcha_tags(options)
<div style="width: 300px; height: 60px; border-style: none;
bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
<textarea id="g-recaptcha-response" name="g-recaptcha-response"
<textarea name="g-recaptcha-response"
class="g-recaptcha-response"
style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
margin: 10px 25px; padding: 0px; resize: none;">
Expand Down

0 comments on commit 7866ec4

Please sign in to comment.