Skip to content

Commit 4c8e42b

Browse files
committed
Update to 0.10.1
1 parent b4f339a commit 4c8e42b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var TextTruncate = require('react-text-truncate'); // CommonJS or UMD
4141
Please polyfill `requestAnimationFrame` before you called `<TextTruncated />`
4242

4343
## Changelog
44+
* 0.10.1 Fix unknown prop `element`
4445
* 0.10.0 Allow pass `element` to specify root element type
4546
* 0.9.3 Fix SSR window not found (removed raf polyfill)
4647
* 0.9.2 Fix styles prop is not working when the text is not truncated

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
text = _props.text,
148148
textTruncateChild = _props.textTruncateChild,
149149
truncateText = _props.truncateText,
150-
props = _objectWithoutProperties(_props, ['containerClassName', 'line', 'text', 'textTruncateChild', 'truncateText']);
150+
element = _props.element,
151+
props = _objectWithoutProperties(_props, ['containerClassName', 'line', 'text', 'textTruncateChild', 'truncateText', 'element']);
151152

152153
var scopeWidth = this.scope.getBoundingClientRect().width;
153154

package.json

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

0 commit comments

Comments
 (0)