@vaadin/vaadin-combo-box
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"main": "vaadin-combo-box.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -325,9 +325,5 @@ /** | ||
this._openedWithFocusRing = this.hasAttribute('focus-ring') || (this.focusElement && this.focusElement.hasAttribute('focus-ring')); | ||
// For touch devices, we don't want to popup virtual keyboard on touch devices unless input | ||
// is explicitly focused by the user. | ||
if (!this.$.overlay.touchDevice) { | ||
// Check to see if there is a focused property and if it's already true. | ||
if (!this.focused) { | ||
this.focus(); | ||
} | ||
// For touch devices, we don't want to popup virtual keyboard unless input is explicitly focused by the user. | ||
if (!this.hasAttribute('focused') && !this.$.overlay.touchDevice) { | ||
this.focus(); | ||
} | ||
@@ -513,2 +509,8 @@ } else { | ||
toggleElement.addEventListener('mousedown', e => e.preventDefault()); | ||
// Unfocus previously focused element if focus is not inside combo box (on touch devices) | ||
toggleElement.addEventListener('click', e => { | ||
if (this.$.overlay.touchDevice && !this.hasAttribute('focused')) { | ||
document.activeElement.blur(); | ||
} | ||
}); | ||
} | ||
@@ -515,0 +517,0 @@ } |
@@ -234,3 +234,3 @@ /** | ||
static get version() { | ||
return '5.0.3'; | ||
return '5.0.4'; | ||
} | ||
@@ -237,0 +237,0 @@ |
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
109413
2641