Fix buttons being given incorrect title

This commit is contained in:
Toby Zerner
2016-04-08 13:38:50 +09:30
parent 6dd190114d
commit 66a39bbbf5
3 changed files with 3 additions and 3 deletions

View File

@ -17873,7 +17873,7 @@ System.register('flarum/components/Button', ['flarum/Component', 'flarum/helpers
// If nothing else is provided, we use the textual button content as tooltip
if (!attrs.title && this.props.children) {
attrs.title = extractText(attrs.title);
attrs.title = extractText(this.props.children);
}
var iconName = extract(attrs, 'icon');