React-dates: IE11: Object doesn't support property or method 'is' (when text field clicked)

Created on 18 Oct 2017  路  6Comments  路  Source: airbnb/react-dates

In the latest IE11 on Windows, with most of the common MDN polyfills installed, when you click on the text field containing the date range to open the date picker, this error appears in IE11:

Warning: Failed prop type: Object doesn't support property or method 'is'
in Unknown
(the stack trace keeps going back to Unknowns)

The only noticeable behavior difference is that the blue styling for the selected date range and greyed out areas for unselectable dates is not shown.

Without the polyfills, react-dates doesn't work at all.

question

All 6 comments

I would not recommend using polyfills from MDN - those are examples, and not for production; I suggest using https://npmjs.com/airbnb-browser-shims.

core-js can hep you: require('core-js/fn/object/is');
https://github.com/zloirock/core-js

@geryit indeed, but https://npmjs.com/airbnb-browser-shims is a better choice.

Props thank you for the education!

@ljharb
https://npmjs.com/airbnb-browser-shims.
core-js, polyfills
tried the above 3.... still facing same issue

any help wud be appreciated!!

Have you loaded the shims before any other code runs?

Was this page helpful?
0 / 5 - 0 ratings