From 591beb1db4f28f936df0325cfa4019ace8c092e6 Mon Sep 17 00:00:00 2001 From: huaxiabuluo Date: Mon, 20 Nov 2017 00:08:46 -0600 Subject: [PATCH] =?UTF-8?q?fixed=20isSupportLineClamp=E2=80=99s=20judgment?= =?UTF-8?q?=20(#240)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Ellipsis/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Ellipsis/index.js b/src/components/Ellipsis/index.js index f81bd6c3..3ddbc8e5 100644 --- a/src/components/Ellipsis/index.js +++ b/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') { -- GitLab