mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08:00
Fix buttons being given incorrect title
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user