Add frontend filtering of users in user picker #13425

pull/13563/head
Johannes Schill 7 years ago
parent e5e7611547
commit 5c842f3ed3
  1. 3
      public/app/core/components/Picker/UserPicker.tsx

@ -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}

Loading…
Cancel
Save