Commit 236e0bfd992007b7e4cdd1876840b3536ae5664c
1 parent
cd92d878
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,7 +113,7 @@ export const formatDateLabels = (function() { | ||
113 | }); | 113 | }); |
114 | return { | 114 | return { |
115 | label: label, | 115 | label: label, |
116 | - type: component.includes('yy') ? 'year' : 'month' | 116 | + type: component.indexOf('yy') != -1 ? 'year' : 'month' |
117 | }; | 117 | }; |
118 | }); | 118 | }); |
119 | return { | 119 | return { |