Skip to content

Commit

Permalink
fix(clerk-js): Deconstruct new feedback props to avoid prop polluting
Browse files Browse the repository at this point in the history
  • Loading branch information
desiprisg committed Oct 30, 2023
1 parent 7dfb3e6 commit 4c75a23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-spies-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Avoid passing some of the new feedback properties down to the HTML basic elements to avoid react warnings in the console.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ export const InviteMembersForm = (props: InviteMembersFormProps) => {
setError,
setWarning,
setSuccess,
setInfo,
validatePassword,
setHasPassedComplexity,
hasPassedComplexity,
feedback,
feedbackType,
clearFeedback,
...restEmailAddressProps
},
} = emailAddressField;
Expand Down

0 comments on commit 4c75a23

Please sign in to comment.