Skip to content

Commit e87c504

Browse files
authored
Merge pull request #440 from jcoyne/unnecessary-id
Remove unnecessary id on textarea
2 parents d8172d6 + 7866ec4 commit e87c504

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Next
22
* Add key setup to v3 example in README
3+
* 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
34

45
## 5.16.0
56
* Allow usage of `options[:turbo]` as well as `options[:turbolinks]` for `recaptcha_v3`

lib/recaptcha/helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def self.recaptcha_tags(options)
7474
<div style="width: 300px; height: 60px; border-style: none;
7575
bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
7676
background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
77-
<textarea id="g-recaptcha-response" name="g-recaptcha-response"
77+
<textarea name="g-recaptcha-response"
7878
class="g-recaptcha-response"
7979
style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
8080
margin: 10px 25px; padding: 0px; resize: none;">

0 commit comments

Comments
 (0)