Socket
Socket
Sign inDemoInstall

set-caret-position

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set-caret-position - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

index.js

@@ -7,4 +7,3 @@ module.exports = function (inputField, caretPos) {

} else {
if (inputField.selectionStart || $(inputField).selectionStart ===
0) {
if (inputField.selectionStart || inputField.selectionStart === 0) {
inputField.focus();

@@ -11,0 +10,0 @@ inputField.setSelectionRange(caretPos, caretPos);

{
"name": "set-caret-position",
"version": "2.0.0",
"version": "2.0.1",
"description": "Move cursor to beginning of line below",

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

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