Просмотр исходного кода

fixed isSupportLineClamp’s judgment (#240)

huaxiabuluo 8 лет назад
Родитель
Сommit
591beb1db4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/Ellipsis/index.js

+ 1 - 1
src/components/Ellipsis/index.js

@@ -6,7 +6,7 @@ import styles from './index.less';
 /* eslint react/no-did-mount-set-state: 0 */
 /* eslint no-param-reassign: 0 */
 
-const isSupportLineClamp = !(document.body.style.webkitLineClamp !== undefined);
+const isSupportLineClamp = (document.body.style.webkitLineClamp !== undefined);
 
 const EllipsisText = ({ text, length, tooltip, ...other }) => {
   if (typeof text !== 'string') {