Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: multiselect for invite people (#13287)
Gabriel Borlea9fc32dc59bce
diff --git a/react/features/base/react/components/web/MultiSelectAutocomplete.tsx b/react/features/base/react/components/web/MultiSelectAutocomplete.tsxindex 2d2637e1ec..8ccc09e0d2 100644--- a/react/features/base/react/components/web/MultiSelectAutocomplete.tsx+++ b/react/features/base/react/components/web/MultiSelectAutocomplete.tsx@@ -163,7 +163,7 @@ class MultiSelectAutocomplete extends Component<IProps, IState> {const autoFocus = this.props.shouldFocus || false;const disabled = this.props.isDisabled || false;const placeholder = this.props.placeholder || '';- const noMatchesFound = this.props.noMatchesFound || '';+ const noMatchesFound = this.state.loading ? this.props.loadingMessage : this.props.noMatchesFound || '';const errorDialog = this._renderError();return (@@ -200,7 +200,7 @@ class MultiSelectAutocomplete extends Component<IProps, IState> {error: this.state.error && Boolean(filterValue),filterValue,isOpen: Boolean(this.state.items.length) && Boolean(filterValue),- items: filterValue ? this.state.items : [],+ items: [],loading: Boolean(filterValue)});if (filterValue) {diff --git a/react/features/base/ui/components/web/MultiSelect.tsx b/react/features/base/ui/components/web/MultiSelect.tsxindex 9bfc086dee..c8d875236d 100644--- a/react/features/base/ui/components/web/MultiSelect.tsx+++ b/react/features/base/ui/components/web/MultiSelect.tsx@@ -24,6 +24,8 @@ interface IProps {selectedItems?: MultiSelectItem[];}+const MULTI_SELECT_HEIGHT = 200;+const useStyles = makeStyles()(theme => {return {container: {@@ -41,7 +43,7 @@ const useStyles = makeStyles()(theme => {borderRadius: `${Number(theme.shape.borderRadius)}px`,...withPixelLineHeight(theme.typography.bodyShortRegular),zIndex: 2,- maxHeight: '400px',+ maxHeight: `${MULTI_SELECT_HEIGHT}px`,overflowY: 'auto',padding: '0'},@@ -128,7 +130,7 @@ const MultiSelect = ({</div></div>))- : <div>{noMatchesText}</div>+ : <div className = { classes.listItem }>{noMatchesText}</div>}</div>), [ items ]);