- Edited
Is there a way to make it where when I select the state, it drops down the menu with the secondary tags?
The current behavior just takes me straight into that tag/category. Then the secondary tags become visible.
Even if it could just show all children tags for all parent tags at all times that would be fine.
I tried digging around in
js\src\forum\components\TagLinkButton.js
export default class TagLinkButton extends LinkButton {
view(vnode) {
const tag = this.attrs.model;
const description = tag && tag.description();
const className = classList('TagLinkButton hasIcon', { child: tag.isChild() }, this.attrs.className);
return (
<Link className={className} href={this.attrs.route} style={tag ? { '--color': tag.color() } : undefined} title={description || undefined}>
{tagIcon(tag, { className: 'Button-icon' })}
<span className="Button-label">Test {tag ? tag.name() : app.translator.trans('flarum-tags.forum.index.untagged_link')}</span>
</Link>
);
}
static initAttrs(attrs) {
super.initAttrs(attrs);
const tag = attrs.model;
attrs.params.tags = tag ? tag.slug() : 'untagged';
attrs.route = app.route('tag', attrs.params);
}
}