You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
Still htmlbars setPropertyStrict throws an error and the date is reset because of the wrong format.
A fix could be:
prototype.setPropertyStrict=function(element,name,value){if(value===undefined){value=null;}if(value===null&&(name==='value'||name==='type'||name==='src')){value='';}// Prevents the date to be reseted if the format isn't yyyy-mm-ddif(element.type==='date'){let[year]=value.split('-');if(year.length<4){return;}}element[name]=value;};
I'm happy to discuss a better fix or solution to the problem.