mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
update: UsersSearchSource
- mithril 2 prefers to store single text children in vnode.text, so we need to move it back to children to give us a consistent API
This commit is contained in:
committed by
Franz Liedke
parent
37d2902cd1
commit
2c2a42030a
@@ -43,6 +43,12 @@ export default class UsersSearchResults {
|
||||
<li className="Dropdown-header">{app.translator.trans('core.forum.search.users_heading')}</li>,
|
||||
results.map((user) => {
|
||||
const name = username(user);
|
||||
|
||||
if (!name.children) {
|
||||
name.children = [name.text];
|
||||
delete name.text;
|
||||
}
|
||||
|
||||
name.children[0] = highlight(name.children[0], query);
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user