From 4c75a234e75d541df620c83abe840e6f63934c08 Mon Sep 17 00:00:00 2001 From: George Desipris Date: Mon, 30 Oct 2023 15:03:43 +0200 Subject: [PATCH] fix(clerk-js): Deconstruct new feedback props to avoid prop polluting --- .changeset/green-spies-leave.md | 5 +++++ .../ui/components/OrganizationProfile/InviteMembersForm.tsx | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/green-spies-leave.md diff --git a/.changeset/green-spies-leave.md b/.changeset/green-spies-leave.md new file mode 100644 index 0000000000..ed8b9bc934 --- /dev/null +++ b/.changeset/green-spies-leave.md @@ -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. diff --git a/packages/clerk-js/src/ui/components/OrganizationProfile/InviteMembersForm.tsx b/packages/clerk-js/src/ui/components/OrganizationProfile/InviteMembersForm.tsx index 5f8fa23046..5321e5a770 100644 --- a/packages/clerk-js/src/ui/components/OrganizationProfile/InviteMembersForm.tsx +++ b/packages/clerk-js/src/ui/components/OrganizationProfile/InviteMembersForm.tsx @@ -56,9 +56,13 @@ export const InviteMembersForm = (props: InviteMembersFormProps) => { setError, setWarning, setSuccess, + setInfo, validatePassword, setHasPassedComplexity, hasPassedComplexity, + feedback, + feedbackType, + clearFeedback, ...restEmailAddressProps }, } = emailAddressField;