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

jb-input

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jb-input - npm Package Compare versions

Comparing version 1.4.20 to 1.4.21

64

lib/JBInput.js

@@ -187,3 +187,3 @@ import { number } from 'prop-types';

case 'inputmode':
this.elements.input.setAttribute("inputmode",value);
this.elements.input.setAttribute("inputmode", value);

@@ -263,5 +263,2 @@ }

onInputKeyup(e) {
const inputText = e.target.value;
this.value = inputText;
this.triggerInputValidation(false);
const keyUpInitObj = {

@@ -292,32 +289,43 @@ key: e.key,

onInputInput(e) {
const eventInitDict ={
bubbles:e.bubbles,
cancelable:e.cancelable,
composed:e.composed,
data:e.data,
isComposing:e.isComposing,
inputType:e.inputType,
dataTransfer:e.dataTransfer,
view:e.view,
detail:e.detail,
key:e.key,
const inputText = e.target.value;
this.value = inputText;
this.triggerInputValidation(false);
const eventInitDict = {
bubbles: e.bubbles,
cancelable: e.cancelable,
composed: e.composed,
data: e.data,
isComposing: e.isComposing,
inputType: e.inputType,
dataTransfer: e.dataTransfer,
view: e.view,
detail: e.detail,
key: e.key,
};
const event = new InputEvent('input',eventInitDict);
const event = new InputEvent('input', eventInitDict);
this.dispatchEvent(event);
}
/**
*
* @param {InputEvent} e
*/
onInputBeforeInput(e) {
const eventInitDict ={
bubbles:e.bubbles,
cancelable:e.cancelable,
composed:e.composed,
data:e.data,
isComposing:e.isComposing,
inputType:e.inputType,
dataTransfer:e.dataTransfer,
view:e.view,
detail:e.detail,
key:e.key,
const eventInitDict = {
bubbles: e.bubbles,
cancelable: e.cancelable,
composed: e.composed,
data: e.data,
isComposing: e.isComposing,
inputType: e.inputType,
dataTransfer: e.dataTransfer,
view: e.view,
detail: e.detail,
key: e.key,
};
const event = new InputEvent('beforeinput',eventInitDict);
const event = new InputEvent('beforeinput', eventInitDict);
this.dispatchEvent(event);
if(event.defaultPrevented){
e.preventDefault();
}
}

@@ -324,0 +332,0 @@ onInputChange(e) {

@@ -17,3 +17,3 @@ {

],
"version": "1.4.20",
"version": "1.4.21",
"bugs": "https://github.com/javadbat/jb-input/issues",

@@ -20,0 +20,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

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