UX: trim @ char from start of the username string in search. (#12060)

Currently, we're unable to search users by their username with the `@` symbol in "Posted by" filter on advanced search page.
This commit is contained in:
Vinoth Kannan 2021-02-12 19:38:13 +05:30 committed by GitHub
parent cc1c4265c1
commit 834388dbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ export default MultiSelectComponent.extend({
search(filter = "") {
filter = filter || "";
filter = filter.replace(/^@/, "");
const options = this.selectKit.options;
// prevents doing ajax request for nothing