Skip to content

Commit 522050a

Browse files
committed
Bump version
1 parent 2b75139 commit 522050a

File tree

4 files changed

+1291
-1243
lines changed

4 files changed

+1291
-1243
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Changelog
22

3+
- 0.16.0 Change wrapper tag from div to span
34
- 0.15.0 Update dependencies to fix security issues
45
- 0.14.0 Fix console warnings
56
- 0.14.0 Added new event hook: `onToggled`

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378

379379
this.onTruncated();
380380
this.onToggled(true);
381-
return _react2["default"].createElement("div", props, (0, _react.createElement)(textElement, props, text.substr(0, startPos) + truncateText + ' '), textTruncateChild);
381+
return _react2["default"].createElement("span", props, (0, _react.createElement)(textElement, props, text.substr(0, startPos) + truncateText + ' '), textTruncateChild);
382382
}
383383
}, {
384384
key: "render",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-text-truncate",
3-
"version": "0.15.0",
3+
"version": "0.16.0",
44
"description": "Truncate text for React.js",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)