mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Don't destroy discussion list in case of a redraw
This commit is contained in:
parent
b2d2bfa34e
commit
82f487c4bb
|
@ -19,7 +19,12 @@ export default class TagNavItem extends NavItem {
|
||||||
m('a', {
|
m('a', {
|
||||||
href: this.props.href,
|
href: this.props.href,
|
||||||
config: m.route,
|
config: m.route,
|
||||||
onclick: () => {app.cache.discussionList = null; m.redraw.strategy('none')},
|
onclick: () => {
|
||||||
|
if (app.cache.discussionList) {
|
||||||
|
app.cache.discussionList.forceReload = true;
|
||||||
|
}
|
||||||
|
m.redraw.strategy('none');
|
||||||
|
},
|
||||||
style: (active && tag) ? 'color: '+tag.color() : '',
|
style: (active && tag) ? 'color: '+tag.color() : '',
|
||||||
title: description || ''
|
title: description || ''
|
||||||
}, [
|
}, [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user