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

@vaadin/a11y-base

Package Overview
Dependencies
Maintainers
12
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/a11y-base - npm Package Compare versions

Comparing version 24.2.0-alpha1 to 24.2.0-alpha10

8

package.json
{
"name": "@vaadin/a11y-base",
"version": "24.2.0-alpha1",
"version": "24.2.0-alpha10",
"publishConfig": {

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

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "24.2.0-alpha1",
"@vaadin/component-base": "24.2.0-alpha10",
"lit": "^2.0.0"

@@ -41,6 +41,6 @@ },

"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.4.2",
"@vaadin/testing-helpers": "^0.5.0",
"sinon": "^13.0.2"
},
"gitHead": "0dbb118320203ab6c0c07450a3e718815367589f"
"gitHead": "ca16b5f88b00ae05fb6d7c7e9874525048e389f0"
}

@@ -85,8 +85,5 @@ /**

focus() {
if (!this.focusElement || this.disabled) {
return;
if (this.focusElement && !this.disabled) {
this.focusElement.focus();
}
this.focusElement.focus();
this._setFocused(true);
}

@@ -99,7 +96,5 @@

blur() {
if (!this.focusElement) {
return;
if (this.focusElement) {
this.focusElement.blur();
}
this.focusElement.blur();
this._setFocused(false);
}

@@ -171,3 +166,3 @@

/**
* @param {Event} event
* @param {FocusEvent} event
* @return {boolean}

@@ -182,2 +177,12 @@ * @protected

/**
* @param {FocusEvent} event
* @return {boolean}
* @protected
* @override
*/
_shouldRemoveFocus(event) {
return event.target === this.focusElement;
}
/**
* @param {boolean} disabled

@@ -184,0 +189,0 @@ * @param {boolean} oldDisabled

@@ -6,6 +6,7 @@ /**

*/
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
import { timeOut } from '@vaadin/component-base/src/async.js';
import { Debouncer } from '@vaadin/component-base/src/debounce.js';
import { getNormalizedScrollLeft, setNormalizedScrollLeft } from '@vaadin/component-base/src/dir-utils.js';
import { getFlattenedElements } from '@vaadin/component-base/src/dom-utils.js';
import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
import { KeyboardDirectionMixin } from './keyboard-direction-mixin.js';

@@ -138,4 +139,5 @@

this._observer = new FlattenedNodesObserver(this, () => {
this._setItems(this._filterItems(FlattenedNodesObserver.getFlattenedNodes(this)));
const slot = this.shadowRoot.querySelector('slot:not([name])');
this._observer = new SlotObserver(slot, () => {
this._setItems(this._filterItems(getFlattenedElements(this)));
});

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