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

@revolist/revo-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revolist/revo-dropdown - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

dist/revo-dropdown/p-b3c5d802.entry.js

10

dist/cjs/revo-dropdown_2.cjs.entry.js

@@ -371,2 +371,3 @@ 'use strict';

onKey(e) {
let item;
if (!this.isFocused) {

@@ -389,5 +390,12 @@ return;

break;
case 'Tab':
e.preventDefault();
item = this.sourceItems[this.currentItem];
if (item) {
this.doChange.emit({ item: item, e });
}
break;
case 'Enter':
e.preventDefault();
const item = this.sourceItems[this.currentItem];
item = this.sourceItems[this.currentItem];
if (item) {

@@ -394,0 +402,0 @@ this.doChange.emit({ item, e });

@@ -14,2 +14,3 @@ import { Component, h, Prop, Event, Method, Listen, State } from '@stencil/core';

onKey(e) {
let item;
if (!this.isFocused) {

@@ -32,5 +33,12 @@ return;

break;
case 'Tab':
e.preventDefault();
item = this.sourceItems[this.currentItem];
if (item) {
this.doChange.emit({ item: item, e });
}
break;
case 'Enter':
e.preventDefault();
const item = this.sourceItems[this.currentItem];
item = this.sourceItems[this.currentItem];
if (item) {

@@ -37,0 +45,0 @@ this.doChange.emit({ item, e });

@@ -370,2 +370,3 @@ import { h, createEvent, Host, proxyCustomElement } from '@stencil/core/internal/client';

onKey(e) {
let item;
if (!this.isFocused) {

@@ -388,5 +389,12 @@ return;

break;
case 'Tab':
e.preventDefault();
item = this.sourceItems[this.currentItem];
if (item) {
this.doChange.emit({ item: item, e });
}
break;
case 'Enter':
e.preventDefault();
const item = this.sourceItems[this.currentItem];
item = this.sourceItems[this.currentItem];
if (item) {

@@ -393,0 +401,0 @@ this.doChange.emit({ item, e });

@@ -367,2 +367,3 @@ import { h, r as registerInstance, c as createEvent, H as Host } from './index-d90c08e5.js';

onKey(e) {
let item;
if (!this.isFocused) {

@@ -385,5 +386,12 @@ return;

break;
case 'Tab':
e.preventDefault();
item = this.sourceItems[this.currentItem];
if (item) {
this.doChange.emit({ item: item, e });
}
break;
case 'Enter':
e.preventDefault();
const item = this.sourceItems[this.currentItem];
item = this.sourceItems[this.currentItem];
if (item) {

@@ -390,0 +398,0 @@ this.doChange.emit({ item, e });

2

dist/revo-dropdown/revo-dropdown.esm.js

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-be42af9e.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o([["p-e9ea0039",[[0,"revo-dropdown",{dataLabel:[1,"data-label"],value:[1032],currentFilter:[1032,"current-filter"],dataId:[1,"data-id"],autoClose:[4,"auto-close"],source:[16],placeholder:[1],appendTo:[1,"append-to"],filter:[1],maxHeight:[2,"max-height"],hasFilter:[4,"has-filter"],autocomplete:[4],autoFocus:[4,"auto-focus"],currentItem:[32],isVisible:[32],doClose:[64],doOpen:[64],doChange:[64]},[[5,"mousedown","onMouseUp"],[4,"keydown","onKey"]]],[0,"revo-list",{sourceItems:[16],isFocused:[4,"is-focused"],dataLabel:[1,"data-label"],currentItem:[32],refresh:[64]},[[4,"keydown","onKey"]]]]]],e)));
import{p as e,b as o}from"./p-be42af9e.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o([["p-b3c5d802",[[0,"revo-dropdown",{dataLabel:[1,"data-label"],value:[1032],currentFilter:[1032,"current-filter"],dataId:[1,"data-id"],autoClose:[4,"auto-close"],source:[16],placeholder:[1],appendTo:[1,"append-to"],filter:[1],maxHeight:[2,"max-height"],hasFilter:[4,"has-filter"],autocomplete:[4],autoFocus:[4,"auto-focus"],currentItem:[32],isVisible:[32],doClose:[64],doOpen:[64],doChange:[64]},[[5,"mousedown","onMouseUp"],[4,"keydown","onKey"]]],[0,"revo-list",{sourceItems:[16],isFocused:[4,"is-focused"],dataLabel:[1,"data-label"],currentItem:[32],refresh:[64]},[[4,"keydown","onKey"]]]]]],e)));
{
"name": "@revolist/revo-dropdown",
"version": "1.0.4",
"version": "1.0.5",
"description": "Minimalistic dropdown with keyboard support and search",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.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