1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

Fix admin navigation not rendering

Not sure why this started happening now, but the admin navigation
dropdown wasn't receiving its children properly. This commit fixes a
flaw in our Mithril patch and allows an array of children to be passed
in the normal JSX way, rather than as an attribute.
This commit is contained in:
Toby Zerner
2017-11-05 16:12:26 +10:30
parent 6614fddbcd
commit 5343d6eff9
2 changed files with 9 additions and 4 deletions

View File

@@ -18,9 +18,9 @@ export default class AdminNav extends Component {
return (
<SelectDropdown
className="AdminNav App-titleControl"
buttonClassName="Button"
children={this.items().toArray()}
/>
buttonClassName="Button">
{this.items().toArray()}
</SelectDropdown>
);
}