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

@vaadin/vaadin-select

Package Overview
Dependencies
Maintainers
14
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-select - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0-alpha1

3

package.json

@@ -13,3 +13,3 @@ {

"name": "@vaadin/vaadin-select",
"version": "2.0.4",
"version": "2.1.0-alpha1",
"main": "vaadin-select.js",

@@ -40,2 +40,3 @@ "author": "Vaadin Ltd",

"@vaadin/vaadin-list-box": "^1.1.0",
"@vaadin/vaadin-list-mixin": "^2.2.0",
"@vaadin/vaadin-item": "^2.1.0",

@@ -42,0 +43,0 @@ "@vaadin/vaadin-overlay": "^3.2.0",

@@ -182,3 +182,3 @@ /**

static get version() {
return '2.0.4';
return '2.1.0-alpha1';
}

@@ -468,5 +468,15 @@

_onKeyDown(e) {
if (!this.readonly && !this.opened && /^(ArrowDown|Down|ArrowUp|Up|Enter|SpaceBar| )$/.test(e.key)) {
e.preventDefault();
this.opened = true;
if (!this.readonly && !this.opened) {
if (/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/.test(e.key)) {
e.preventDefault();
this.opened = true;
} else if (/[a-zA-Z0-9]/.test(e.key) && e.key.length === 1) {
const selected = this._menuElement.selected;
const currentIdx = selected !== undefined ? selected : -1;
const newIdx = this._menuElement._searchKey(currentIdx, e.key);
if (newIdx >= 0) {
this._updateSelectedItem(this._items[newIdx].value, this._items);
}
}
}

@@ -473,0 +483,0 @@ }

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