From 180d18f340cb9fc102626ef33ea52d401cf8e2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kersten?= Date: Fri, 9 Aug 2019 16:29:56 +0200 Subject: [PATCH] replace includes with indexOf for better compatibility --- src/Swatches.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Swatches.vue b/src/Swatches.vue index 4171024..9ad5192 100644 --- a/src/Swatches.vue +++ b/src/Swatches.vue @@ -159,7 +159,7 @@ export default { type: String, default: () => 'text', validator (value) { - return ['text', 'color'].includes(value) + return ['text', 'color'].indexOf(value) !== -1 } }, inline: {