@revolist/revo-dropdown
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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 }); |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
504723
12353
2