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

@ -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');