brianblakely / nodep-date-input-polyfill

Automatically adds datepickers to input[type=date] on IE, macOS Safari, and legacy browsers.
https://www.npmjs.com/package/nodep-date-input-polyfill
MIT License
96 stars 137 forks source link

readonly value don't work #37

Closed fabifabi closed 7 years ago

fabifabi commented 7 years ago

code:

result: we can change the input !!!!

(bonus, i translated in french: "fr":{days:["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], months:["Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Decembre"], today:"Aujourd'hui", format:"D/M/Y"} )

fabifabi commented 7 years ago

line 155: document.querySelectorAll('input[type="date"]:not([data-has-picker]):not([readonly])')

brianblakely commented 7 years ago

Thank you for your report and for researching an easy fix.