Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyChang committed Jan 8, 2020
1 parent 2b75139 commit 522050a
Show file tree
Hide file tree
Showing 4 changed files with 1,291 additions and 1,243 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Changelog

- 0.16.0 Change wrapper tag from div to span
- 0.15.0 Update dependencies to fix security issues
- 0.14.0 Fix console warnings
- 0.14.0 Added new event hook: `onToggled`
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@

this.onTruncated();
this.onToggled(true);
return _react2["default"].createElement("div", props, (0, _react.createElement)(textElement, props, text.substr(0, startPos) + truncateText + ' '), textTruncateChild);
return _react2["default"].createElement("span", props, (0, _react.createElement)(textElement, props, text.substr(0, startPos) + truncateText + ' '), textTruncateChild);
}
}, {
key: "render",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-text-truncate",
"version": "0.15.0",
"version": "0.16.0",
"description": "Truncate text for React.js",
"main": "lib/index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 522050a

Please sign in to comment.