1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00

Fix buttons being given incorrect title

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

View File

@@ -31,7 +31,7 @@ export default class Button extends Component {
// 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);
}
const iconName = extract(attrs, 'icon');