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