Skip to content

Commit

Permalink
Merge pull request #3535 from antoinerousseau/cardtitle-title
Browse files Browse the repository at this point in the history
[CardTitle] remove `title` from injected node attributes (to avoid native tooltip)
  • Loading branch information
newoga committed Mar 2, 2016
2 parents c39f457 + e1b1346 commit d11bd30
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/card/card-title.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@ const CardTitle = React.createClass({
const titleStyle = Object.assign({}, styles.title, this.props.titleStyle);
const subtitleStyle = Object.assign({}, styles.subtitle, this.props.subtitleStyle);

const {
title,
subtitle,
...other,
} = this.props;

return (
<div {...this.props} style={prepareStyles(rootStyle)}>
<div {...other} style={prepareStyles(rootStyle)}>
<span style={prepareStyles(titleStyle)}>
{this.props.title}
{title}
</span>
<span style={prepareStyles(subtitleStyle)}>
{this.props.subtitle}
{subtitle}
</span>
{this.props.children}
</div>
Expand Down

0 comments on commit d11bd30

Please sign in to comment.