Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acusti/input-text

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acusti/input-text - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

dist/InputText.js

@@ -14,2 +14,3 @@ import * as React from 'react';

const handleBlur = useCallback((event) => {
inputRef.current = event.currentTarget;
if (onBlur)

@@ -36,3 +37,5 @@ onBlur(event);

// but it doesn’t work in Safari, so we use the initial onSelect event instead
const handleSelect = useCallback(() => {
const handleSelect = useCallback((event) => {
const input = event.currentTarget;
inputRef.current = input;
// Do nothing if this isn’t the initial select-on-focus event

@@ -43,5 +46,4 @@ if (!isInitialSelectionRef.current)

isInitialSelectionRef.current = false;
const input = inputRef.current;
// Do nothing if input has no value
if (!input || !input.value)
if (!input.value)
return;

@@ -48,0 +50,0 @@ // Do nothing if input is no longer the document’s activeElement

{
"name": "@acusti/input-text",
"version": "1.1.0",
"version": "1.2.0",
"description": "React component that renders a semi-controlled input with multiLine and selectTextOnFocus support",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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