react-telephone-input
Advanced tools
Comparing version 1.0.0 to 1.0.1
15
index.js
@@ -5,3 +5,4 @@ /** | ||
// TODO - remove jquery dependence | ||
// TODO - fix the onlyContries props. Currently expects that as an array of country object, but users should be able to send in array of country isos | ||
var _ = require('lodash'); | ||
@@ -47,14 +48,2 @@ var React = require('react/addons'); | ||
function scrollToTop(scrollDuration) { | ||
var scrollStep = -window.scrollY / (scrollDuration / 15), | ||
scrollInterval = setInterval(function(){ | ||
if ( window.scrollY != 0 ) { | ||
window.scrollBy( 0, scrollStep ); | ||
} | ||
else clearInterval(scrollInterval); | ||
},15); | ||
} | ||
// sroll to the country list item in the dropdown | ||
var ReactTelephoneInput = React.createClass({ | ||
@@ -61,0 +50,0 @@ getInitialState: function() { |
{ | ||
"name": "react-telephone-input", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "React component for entering and validating international telephone numbers. Inspired from the awesome jquery plugin for the same - https://github.com/Bluefieldscom/intl-tel-input.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
57898
1712