Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Searches persist in Members and Administrators Popup #643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/user/organization/popups/Admins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
<Row className="modal__member" id="p1" key={item._id}>
<div className="member__image">
Expand All @@ -123,7 +127,7 @@ class Admins extends Component {
));
return (
<Modal
onHide={onHide}
onHide={clear}
show={show}
size="md"
aria-labelledby="contained-modal-title-vcenter"
Expand Down
8 changes: 6 additions & 2 deletions src/user/organization/popups/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ class Members extends Component {
render() {
const { onHide, show } = this.props
const { isAdmin, inviteLink, whoCanSendInvite } = this.state
const membersList = [ ...this.state.members]
const membersList = [ ...this.state.members]
const clear = () => {
this.setState({ query: "" })
onHide()
}
let members = membersList.map((item) => (
<Row className="modal__member" id="p1" key={item._id}>
<div className="member__image">
Expand Down Expand Up @@ -142,7 +146,7 @@ class Members extends Component {
));
return (
<Modal
onHide={onHide}
onHide={clear}
show={show}
size="md"
aria-labelledby="contained-modal-title-vcenter"
Expand Down