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:
commit
4ab1ac531e
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ export const formatDateLabels = (function() {
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
label: label,
|
label: label,
|
||||||
type: component.includes('yy') ? 'year' : 'month'
|
type: component.indexOf('yy') != -1 ? 'year' : 'month'
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue