Socket
Socket
Sign inDemoInstall

@vaadin/field-base

Package Overview
Dependencies
Maintainers
14
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/field-base - npm Package Compare versions

Comparing version 22.0.8 to 22.0.9

6

package.json
{
"name": "@vaadin/field-base",
"version": "22.0.8",
"version": "22.0.9",
"publishConfig": {

@@ -34,3 +34,3 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "^22.0.8",
"@vaadin/component-base": "^22.0.9",
"lit": "^2.0.0"

@@ -43,3 +43,3 @@ },

},
"gitHead": "6b6a1e5262588ae0f0b056e133f196dc93177264"
"gitHead": "56629dcfa0612f6cc5e91112505fc19d03144784"
}

@@ -34,3 +34,3 @@ /**

* Override an event listener from `KeyboardMixin`
* to prevent setting `focused` on Shift Tab.
* to prevent focusing the host element on Shift Tab.
* @param {KeyboardEvent} event

@@ -43,9 +43,6 @@ * @protected

// When focus moves with Shift + Tab, do not mark host as focused.
// The flag set here will be later used in focusin event listener.
// When focus moves with Shift + Tab, skip focusing the host element
// by focusing it before the default browser focus handling runs
if (!event.defaultPrevented && event.keyCode === 9 && event.shiftKey) {
this._isShiftTabbing = true;
HTMLElement.prototype.focus.apply(this);
this._setFocused(false);
setTimeout(() => (this._isShiftTabbing = false), 0);
}

@@ -66,9 +63,9 @@ }

// When focus moves from outside and not with Shift + Tab, delegate it to focusElement.
if (path[0] === this && !this.contains(event.relatedTarget) && !this._isShiftTabbing) {
// When focus moves to the host element itself, then delegate it to the focusElement
// This should only move focus when using keyboard navigation, for clicks we don't want to interfere,
// for example when the user tries to select some text
if (path[0] === this && this._keyboardActive) {
this.focusElement.focus();
return true;
}
if (path.includes(this.focusElement)) {
if (path[0] === this || path.includes(this.focusElement)) {
return true;

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