Usage in IE9
flatpickr should work out-of-the-box in IE10+, Safari 6+, Firefox, and Chrome.
IE9
flatpickr depends on classList
which is absent from IE9, thus if you’re targeting IE9
you will need to include a polyfill.
Additionally, flatpickr has specific styles for IE9.
Make sure to include that as well, utilizing browser detection.
For instance,
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/ie.css">
<![endif]-->
If you’re using a bundler like webpack, see html-webpack-plugin