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

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

View File

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

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