Skip to content

Commit 67c3a78

Browse files
committed
Had a small error in the FormId attribute format which does translate to form-id.
1 parent d2e566c commit 67c3a78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ReCaptcha/TagHelpers/RecaptchaInvisibleTagHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ namespace Griesoft.AspNetCore.ReCaptcha.TagHelpers
3535
/// </code>
3636
/// </example>
3737
[HtmlTargetElement("recaptcha-invisible", Attributes = "callback", TagStructure = TagStructure.WithoutEndTag)]
38-
[HtmlTargetElement("recaptcha-invisible", Attributes = "formid", TagStructure = TagStructure.WithoutEndTag)]
38+
[HtmlTargetElement("recaptcha-invisible", Attributes = "form-id", TagStructure = TagStructure.WithoutEndTag)]
3939
[HtmlTargetElement("button", Attributes = "re-invisible,callback")]
40-
[HtmlTargetElement("button", Attributes = "re-invisible,formid")]
40+
[HtmlTargetElement("button", Attributes = "re-invisible,form-id")]
4141
public class RecaptchaInvisibleTagHelper : TagHelper
4242
{
4343
private readonly ITagHelperComponentManager _tagHelperComponentManager;

src/ReCaptcha/TagHelpers/RecaptchaV3TagHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ namespace Griesoft.AspNetCore.ReCaptcha.TagHelpers
3333
/// <button class="g-recaptcha" data-sitekey="your_site_key" data-callback='submitmyForm' data-action='submit'>Submit</button>
3434
/// </code>
3535
/// </example>
36-
[HtmlTargetElement(Attributes = "callback,action")]
37-
[HtmlTargetElement(Attributes = "formid,action")]
36+
[HtmlTargetElement("recaptcha-v3", Attributes = "callback,action")]
37+
[HtmlTargetElement("recaptcha-v3", Attributes = "form-id,action")]
3838
public class RecaptchaV3TagHelper : TagHelper
3939
{
4040
private readonly ITagHelperComponentManager _tagHelperComponentManager;

0 commit comments

Comments
 (0)