Add frontend filtering of users in user picker #13425

This commit is contained in:
Johannes Schill 2018-10-08 14:07:25 +02:00
parent e5e7611547
commit 5c842f3ed3

View File

@ -71,6 +71,9 @@ export class UserPicker extends Component<Props, State> {
NoOptionsMessage,
}}
placeholder="Select user"
filterOption={(option: { label: string }, searchText?: string) => {
return option.label.includes(searchText);
}}
loadingMessage={() => 'Loading...'}
noOptionsMessage={() => 'No users found'}
getOptionValue={i => i.id}