vc-platform icon indicating copy to clipboard operation
vc-platform copied to clipboard

Date picker doesn't work in IE

Open danielstarzewski opened this issue 7 years ago • 3 comments
trafficstars

Hello,

Version info:

  • Browser version: IE11.0.9600.18838
  • Platform version: 2.13.19

Please go to http://admin-demo.virtocommerce.com/#/workspace/marketing and select any promotion. In details blade click on calendar icon. Nothing happens. I would expect date picker to pop up.

Thank you.

danielstarzewski avatar Dec 12 '17 16:12 danielstarzewski

Technically: i18n uses includes array method which doesn't supported in IE 10-11. We need to rewrite this code: https://github.com/VirtoCommerce/vc-platform/blob/4bd35adda245dee4ce393edb396c99080ca79608/VirtoCommerce.Platform.Web/Scripts/i18n/resources/locales.js#L10 with underscore's contains

asvishnyakov avatar Dec 12 '17 20:12 asvishnyakov

If you open dev tools in IE during home page loading you will notice there are other errors related to 'include'. I don't know which functionalities are affected but probably there are more issues. Thank you.

danielstarzewski avatar Dec 13 '17 08:12 danielstarzewski

@danielstarzewski includes is ES2016 feature and supported only in latest browsers. So we just need use underscore here

asvishnyakov avatar Dec 13 '17 08:12 asvishnyakov