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.7.0 to 1.7.1

14

dist/InputText.js

@@ -93,8 +93,6 @@ import * as React from 'react';

onKeyDown(event);
if (multiLine &&
submitOnEnter &&
if (submitOnEnter &&
event.key === 'Enter' &&
!event.shiftKey &&
!event.altKey &&
!event.ctrlKey) {
// for multi-line inputs, shift/alt/ctrl-Enter should insert newlines
(!multiLine || (!event.shiftKey && !event.altKey && !event.ctrlKey))) {
event.preventDefault();

@@ -105,6 +103,4 @@ const form = event.currentTarget.closest('form');

}
else {
// if no form to submit, trigger input blur
event.currentTarget.blur();
}
// always blur input on Enter when submitOnEnter is true
event.currentTarget.blur();
}

@@ -111,0 +107,0 @@ else if (doubleClickToEdit && inputRef.current) {

{
"name": "@acusti/input-text",
"version": "1.7.0",
"version": "1.7.1",
"type": "module",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -99,2 +99,4 @@ # @acusti/input-text

Note: the `InputElement` type referenced in the event handlers above is a union of `HTMLInputElement` and `HTMLTextAreaElement` and is available as an export (`import type { InputElement } from '@acusti/input-text';`).
Note: the `InputElement` type referenced in the event handlers above is a
union of `HTMLInputElement` and `HTMLTextAreaElement` and is available as
an export (`import type { InputElement } from '@acusti/input-text';`).

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