Commit 4ab1ac531e6b880c116932830bf72cca0d004669

Authored by Aresn
Committed by GitHub
2 parents 37fe6bb8 236e0bfd

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

Don't use includes to make IE happy and avoid Polyfill
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/date-picker/util.js
... ... @@ -113,7 +113,7 @@ export const formatDateLabels = (function() {
113 113 });
114 114 return {
115 115 label: label,
116   - type: component.includes('yy') ? 'year' : 'month'
  116 + type: component.indexOf('yy') != -1 ? 'year' : 'month'
117 117 };
118 118 });
119 119 return {
... ...