Socket
Socket
Sign inDemoInstall

@vaadin/a11y-base

Package Overview
Dependencies
4
Maintainers
12
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 24.3.9 to 24.3.10

6

package.json
{
"name": "@vaadin/a11y-base",
"version": "24.3.9",
"version": "24.3.10",
"publishConfig": {

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

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "~24.3.9",
"@vaadin/component-base": "~24.3.10",
"lit": "^3.0.0"

@@ -44,3 +44,3 @@ },

},
"gitHead": "89f71cc95b22840de910070c145f9cbf9714f4f4"
"gitHead": "32a4f327e78490074eaefa768f58857b83ca6278"
}

@@ -39,3 +39,3 @@ /**

if (idx >= 0) {
items[idx].focus();
this._focus(idx);
}

@@ -42,0 +42,0 @@ }

@@ -11,2 +11,3 @@ /**

import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
import { isElementHidden } from './focus-utils.js';
import { KeyboardDirectionMixin } from './keyboard-direction-mixin.js';

@@ -121,4 +122,11 @@

}
const firstItem = this.querySelector('[tabindex="0"]') || (this.items ? this.items[0] : null);
this._focusItem(firstItem);
const items = Array.isArray(this.items) ? this.items : [];
const idx = this._getAvailableIndex(items, 0, null, (item) => item.tabIndex === 0 && !isElementHidden(item));
if (idx >= 0) {
this._focus(idx);
} else {
// Call `KeyboardDirectionMixin` logic to focus first non-disabled item.
super.focus();
}
}

@@ -125,0 +133,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc