mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
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:
parent
cc1c4265c1
commit
834388dbe0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user