Skip to content

Commit

Permalink
DOn't use includes to make IE happy and avoid Polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCrisostomo committed Nov 8, 2017
1 parent cd92d87 commit 236e0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/date-picker/util.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 236e0bf

Please sign in to comment.