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

makeup-active-descendant

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

makeup-active-descendant - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

16

index.js

@@ -82,3 +82,4 @@ 'use strict';

function onModelReset() {
function onModelReset(e) {
var toIndex = e.detail.toIndex;
var activeClassName = this._options.activeDescendantClassName;

@@ -88,3 +89,3 @@ var widget = this;

this._items.forEach(function (el) {
el.classList.remove(activeClassName);
el.classList.remove(activeClassName); // deprecated. aria-activedescendant is now well supported without needing aria-selected

@@ -96,5 +97,5 @@ if (widget._options.useAriaSelected === true) {

if (this._options.autoReset > -1) {
var itemEl = this._items[this._options.autoReset];
itemEl.classList.add(this._options.activeDescendantClassName);
if (toIndex > -1) {
var itemEl = this._items[toIndex];
itemEl.classList.add(activeClassName); // deprecated. aria-activedescendant is now well supported without needing aria-selected

@@ -191,2 +192,7 @@ if (this._options.useAriaSelected === true) {

_createClass(LinearActiveDescendant, [{
key: "reset",
value: function reset() {
this._navigationEmitter.model.reset();
}
}, {
key: "destroy",

@@ -193,0 +199,0 @@ value: function destroy() {

{
"name": "makeup-active-descendant",
"description": "Implements ARIA active descendant keyboard navigation",
"version": "0.2.0",
"version": "0.2.1",
"main": "index.js",

@@ -58,3 +58,3 @@ "repository": "https://github.com/makeup-js/makeup-active-descendant.git",

"custom-event-polyfill": "^1",
"makeup-navigation-emitter": "~0.2.2",
"makeup-navigation-emitter": "~0.2.3",
"nodelist-foreach-polyfill": "^1"

@@ -61,0 +61,0 @@ },

@@ -196,2 +196,3 @@ # makeup-active-descendant

* `destroy`: destroys all event listeners
* `reset`: will force a reset to the value specified by `autoReset`

@@ -198,0 +199,0 @@ ## Dependencies

Sorry, the diff of this file is not supported yet

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