Skip to content

Commit

Permalink
fix length property include "..." tail length (ant-design#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikogu authored and zhuaizhuaixi committed Jun 23, 2018
1 parent ec443d8 commit c10bb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Ellipsis/index.js
Expand Up @@ -20,7 +20,7 @@ const EllipsisText = ({ text, length, tooltip, ...other }) => {
if (length - tail.length <= 0) {
displayText = '';
} else {
displayText = text.slice(0, length - tail.length);
displayText = text.slice(0, length);
}

if (tooltip) {
Expand Down

0 comments on commit c10bb4c

Please sign in to comment.