Skip to content

Commit 2b75139

Browse files
oakisShinyChang
authored andcommitted
Update to use span instead of div (#82)
divs are not allowed to be used inside p-tags for example
1 parent 90d7b79 commit 2b75139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TextTruncate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ export default class TextTruncate extends Component {
206206
this.onTruncated();
207207
this.onToggled(true);
208208
return (
209-
<div {...props}>
209+
<span {...props}>
210210
{createElement(textElement, props, text.substr(0, startPos) + truncateText + ' ')}
211211
{textTruncateChild}
212-
</div>
212+
</span>
213213
);
214214
}
215215

0 commit comments

Comments
 (0)