enero / date-input-polyfill-react

Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari.

Home Page:https://www.npmjs.com/package/date-input-polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

date-input-polyfill-react

Just include this simple script and IE, Firefox, and OS X Safari will support <input type="date">, without any dependencies, not even jQuery!

Support dynamically created inputs, so can be used in single page applications.

Forked from date-input-polyfill to make it work with React >= 15.6 (and probably breaking compatibility with anything other than React, never tested that).

The changes to support React have been based on comments and code by:

Grin : https://stackoverflow.com/a/46012210/1141255

Brian Mann : cypress-io/cypress#647 (comment) and https://github.com/cypress-io/cypress/commit/4a56ca83b3b6e19ec57d10a8160f54f513e8f8ec

Install

npm install --save date-input-polyfill-react

About

Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari.

https://www.npmjs.com/package/date-input-polyfill

License:MIT License


Languages

Language:JavaScript 88.9%Language:CSS 6.4%Language:HTML 4.8%