From a27bbbc164bf28ea643913929a1063b194a51958 Mon Sep 17 00:00:00 2001 From: zjf Date: Mon, 2 Mar 2020 13:13:33 +0800 Subject: [PATCH] fix target styles match --- src/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/functions.js b/src/js/functions.js index d57151e..f6ac176 100644 --- a/src/js/functions.js +++ b/src/js/functions.js @@ -34,7 +34,7 @@ export function collectStyles (element, params) { function targetStylesMatch (styles, value) { for (let i = 0; i < styles.length; i++) { - if (typeof value === 'object' && value.indexOf(styles[i]) !== -1) return true + if (typeof value === 'string' && value.indexOf(styles[i]) !== -1) return true } return false }