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

tabbable

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabbable - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

CHANGELOG.md
# Changelog
## 1.0.7
- Ensure stable sort of `tabindex`ed elements even in browsers that have an unstable `Array.prototype.sort`.
## 1.0.6

@@ -4,0 +8,0 @@

3

index.js

@@ -38,2 +38,3 @@ module.exports = function(el) {

orderedTabbables.push({
index: i,
tabIndex: candidateIndex,

@@ -47,3 +48,3 @@ node: candidate,

.sort(function(a, b) {
return a.tabIndex - b.tabIndex;
return a.tabIndex === b.tabIndex ? a.index - b.index : a.tabIndex - b.tabIndex;
})

@@ -50,0 +51,0 @@ .map(function(a) {

{
"name": "tabbable",
"version": "1.0.6",
"version": "1.0.7",
"description": "Returns an array of all tabbable DOM nodes within a containing node.",

@@ -5,0 +5,0 @@ "main": "index.js",

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