New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-telephone-input

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-telephone-input - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

.publish/bundle.js

17

lib/index.js

@@ -111,3 +111,3 @@ 'use strict';

this._cursorToEnd();
this._cursorToEnd(true);
if (typeof this.props.onChange === 'function') {

@@ -192,8 +192,13 @@ this.props.onChange(this.state.formattedNumber);

// put the cursor to the end of the input (usually after a focus event)
_cursorToEnd: function _cursorToEnd() {
_cursorToEnd: function _cursorToEnd(skipFocus) {
var input = this.refs.numberInput.getDOMNode();
input.focus();
if (isModernBrowser) {
var len = input.value.length;
input.setSelectionRange(len, len);
if (skipFocus) {
this.handleInputFocus();
} else {
input.focus();
if (isModernBrowser) {
var len = input.value.length;
input.setSelectionRange(len, len);
}
}

@@ -200,0 +205,0 @@ },

{
"name": "react-telephone-input",
"version": "1.3.3",
"version": "1.3.4",
"description": "React component for entering and validating international telephone numbers",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -109,3 +109,3 @@ 'use strict';

this._cursorToEnd();
this._cursorToEnd(true);
if(typeof this.props.onChange === 'function') {

@@ -190,8 +190,13 @@ this.props.onChange(this.state.formattedNumber);

// put the cursor to the end of the input (usually after a focus event)
_cursorToEnd() {
_cursorToEnd(skipFocus) {
var input = this.refs.numberInput.getDOMNode();
input.focus();
if (isModernBrowser) {
var len = input.value.length;
input.setSelectionRange(len, len);
if (skipFocus) {
this.handleInputFocus();
} else {
input.focus();
if (isModernBrowser) {
var len = input.value.length;
input.setSelectionRange(len, len);
}
}

@@ -198,0 +203,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc