comsolit / inputnumberpolyfill Goto Github PK
View Code? Open in Web Editor NEWangular based polyfill for input type number controls in Microsoft Browsers
License: MIT License
angular based polyfill for input type number controls in Microsoft Browsers
License: MIT License
I'm generating a table of inputs, but they all share the same value when clicking the plus/minus buttons. They initially show the correct value, but change to the wrong value (all inputs the same value) when increasing / decreasing.
// on line 103:
hiddenRangeInputJquery = angular.element(hiddenRangeInput);
// error: Variable undefined in strict mode
inputNumberPolyfill should not assume anything about inputs and only apply itself when it can, but never error out.
return elem.attr("type").toLowerCase() === "number" && (...)
Should become:
return elem.attr("type") && elem.attr("type").toLowerCase() === "number" &&
function hasRequiredAttributes(elem)
{
return elem.attr("type").toLowerCase() === "number" &&
!isNaN(parseFloat(elem.attr("max"))) &&
!isNaN(parseFloat(elem.attr("min"))) &&
!isNaN(parseFloat(elem.attr("step")));
}
!isNaN(parseFloat(elem.attr("max")))
results in false
when the attribute is missing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.