From b45f1d32cd097f37f265e0ccc94d71f993d8e7ea Mon Sep 17 00:00:00 2001 From: robin828 <61390860+robin828@users.noreply.github.com> Date: Wed, 7 Oct 2020 21:54:56 +0530 Subject: [PATCH] Fixed Searches persist in Members and Administrators Popup Fixes #637 --- src/user/organization/popups/Admins.js | 6 +++++- src/user/organization/popups/Members.js | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/user/organization/popups/Admins.js b/src/user/organization/popups/Admins.js index 6e145ac8..5da4c860 100644 --- a/src/user/organization/popups/Admins.js +++ b/src/user/organization/popups/Admins.js @@ -100,6 +100,10 @@ class Admins extends Component { const { onHide, show } = this.props const { inviteLink, whoCanSendInvite } = this.state const adminList = [...this.state.admins] + const clear = () => { + this.setState({ query: "" }) + onHide() + } let admins = adminList.map((item) => (
@@ -123,7 +127,7 @@ class Admins extends Component { )); return ( { + this.setState({ query: "" }) + onHide() + } let members = membersList.map((item) => (
@@ -142,7 +146,7 @@ class Members extends Component { )); return (