Skip to content

Commit

Permalink
Had a small error in the FormId attribute format which does translate…
Browse files Browse the repository at this point in the history
… to form-id.
  • Loading branch information
jooni91 committed Apr 20, 2022
1 parent d2e566c commit 67c3a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ReCaptcha/TagHelpers/RecaptchaInvisibleTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ namespace Griesoft.AspNetCore.ReCaptcha.TagHelpers
/// </code>
/// </example>
[HtmlTargetElement("recaptcha-invisible", Attributes = "callback", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("recaptcha-invisible", Attributes = "formid", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("recaptcha-invisible", Attributes = "form-id", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("button", Attributes = "re-invisible,callback")]
[HtmlTargetElement("button", Attributes = "re-invisible,formid")]
[HtmlTargetElement("button", Attributes = "re-invisible,form-id")]
public class RecaptchaInvisibleTagHelper : TagHelper
{
private readonly ITagHelperComponentManager _tagHelperComponentManager;
Expand Down
4 changes: 2 additions & 2 deletions src/ReCaptcha/TagHelpers/RecaptchaV3TagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace Griesoft.AspNetCore.ReCaptcha.TagHelpers
/// <button class="g-recaptcha" data-sitekey="your_site_key" data-callback='submitmyForm' data-action='submit'>Submit</button>
/// </code>
/// </example>
[HtmlTargetElement(Attributes = "callback,action")]
[HtmlTargetElement(Attributes = "formid,action")]
[HtmlTargetElement("recaptcha-v3", Attributes = "callback,action")]
[HtmlTargetElement("recaptcha-v3", Attributes = "form-id,action")]
public class RecaptchaV3TagHelper : TagHelper
{
private readonly ITagHelperComponentManager _tagHelperComponentManager;
Expand Down

0 comments on commit 67c3a78

Please sign in to comment.