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

@vaadin/vaadin-combo-box

Package Overview
Dependencies
Maintainers
16
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-combo-box - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

2

package.json

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

"name": "@vaadin/vaadin-combo-box",
"version": "5.0.8",
"version": "5.0.9",
"main": "vaadin-combo-box.js",

@@ -16,0 +16,0 @@ "author": "Vaadin Ltd",

@@ -35,3 +35,3 @@ /**

loader.setAttribute('part', 'loader');
const content = this.shadowRoot.querySelector(['[part~="content"]']);
const content = this.shadowRoot.querySelector('[part~="content"]');
content.parentNode.insertBefore(loader, content);

@@ -38,0 +38,0 @@ }

@@ -226,16 +226,18 @@ /**

constructor() {
super();
this._boundOnFocusout = this._onFocusout.bind(this);
this._boundOverlaySelectedItemChanged = this._overlaySelectedItemChanged.bind(this);
this._boundClose = this.close.bind(this);
this._boundOnOpened = this._onOpened.bind(this);
this._boundOnKeyDown = this._onKeyDown.bind(this);
this._boundOnClick = this._onClick.bind(this);
this._boundOnOverlayTouchAction = this._onOverlayTouchAction.bind(this);
this._boundOnTouchend = this._onTouchend.bind(this);
}
ready() {
super.ready();
this.addEventListener('focusout', e => {
// Fixes the problem with `focusout` happening when clicking on the scroll bar on Edge
const dropdown = this.$.overlay.$.dropdown;
if (dropdown && dropdown.$ && e.relatedTarget === dropdown.$.overlay) {
e.composedPath()[0].focus();
return;
}
if (!this._closeOnBlurIsPrevented) {
this.close();
}
});
this.addEventListener('focusout', this._boundOnFocusout);

@@ -246,20 +248,13 @@ this._lastCommittedValue = this.value;

// 2.0 does not support 'overlay.selection-changed' syntax in listeners
this.$.overlay.addEventListener('selection-changed', this._overlaySelectedItemChanged.bind(this));
this.$.overlay.addEventListener('selection-changed', this._boundOverlaySelectedItemChanged);
this.addEventListener('vaadin-combo-box-dropdown-closed', this.close.bind(this));
this.addEventListener('vaadin-combo-box-dropdown-opened', this._onOpened.bind(this));
this.addEventListener('keydown', this._onKeyDown.bind(this));
this.addEventListener('click', this._onClick.bind(this));
this.addEventListener('vaadin-combo-box-dropdown-closed', this._boundClose);
this.addEventListener('vaadin-combo-box-dropdown-opened', this._boundOnOpened);
this.addEventListener('keydown', this._boundOnKeyDown);
this.addEventListener('click', this._boundOnClick);
this.$.overlay.addEventListener('vaadin-overlay-touch-action', this._onOverlayTouchAction.bind(this));
this.$.overlay.addEventListener('vaadin-overlay-touch-action', this._boundOnOverlayTouchAction);
this.addEventListener('touchend', e => {
if (!this._clearElement || e.composedPath()[0] !== this._clearElement) {
return;
}
this.addEventListener('touchend', this._boundOnTouchend);
e.preventDefault();
this._clear();
});
this._observer = new FlattenedNodesObserver(this, info => {

@@ -906,3 +901,23 @@ this._setTemplateFromNodes(info.addedNodes);

_onFocusout(event) {
// Fixes the problem with `focusout` happening when clicking on the scroll bar on Edge
const dropdown = this.$.overlay.$.dropdown;
if (dropdown && dropdown.$ && event.relatedTarget === dropdown.$.overlay) {
event.composedPath()[0].focus();
return;
}
if (!this._closeOnBlurIsPrevented) {
this.close();
}
}
_onTouchend(event) {
if (!this._clearElement || event.composedPath()[0] !== this._clearElement) {
return;
}
event.preventDefault();
this._clear();
}
/**

@@ -909,0 +924,0 @@ * Returns true if `value` is valid, and sets the `invalid` flag appropriately.

@@ -234,3 +234,3 @@ /**

static get version() {
return '5.0.8';
return '5.0.9';
}

@@ -237,0 +237,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