From 236e0bfd992007b7e4cdd1876840b3536ae5664c Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Wed, 8 Nov 2017 10:14:08 +0100 Subject: [PATCH] DOn't use includes to make IE happy and avoid Polyfill --- src/components/date-picker/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/date-picker/util.js b/src/components/date-picker/util.js index 159f039..31a10dc 100644 --- a/src/components/date-picker/util.js +++ b/src/components/date-picker/util.js @@ -113,7 +113,7 @@ export const formatDateLabels = (function() { }); return { label: label, - type: component.includes('yy') ? 'year' : 'month' + type: component.indexOf('yy') != -1 ? 'year' : 'month' }; }); return { -- libgit2 0.21.4