Merge pull request #2358 from SergioCrisostomo/ie-fix-2330

Don't use includes to make IE happy and avoid Polyfill
This commit is contained in:
Aresn 2017-11-08 19:17:32 -06:00 committed by GitHub
commit 4ab1ac531e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {