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

react-roving-tabindex

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-roving-tabindex - npm Package Versions

234

3.2.0

Diff

Changelog

Source

3.2.0

  • Updated dev dependencies.
middleengine
published 3.2.0-rc1 •

middleengine
published 3.1.1 •

Changelog

Source

3.1.1

  • Updated dev dependencies.
  • Fixed a bug whereby loopAround option on a toolbar doesn't loop if first/last tabStop is disabled (thanks to @bfeigin).
middleengine
published 3.1.0 •

Changelog

Source

3.1.0

  • Updated dev dependencies.
  • Support having a short final row of tab stops in a grid layout (thanks to @webextensions).
middleengine
published 3.1.0-beta •

middleengine
published 3.0.0 •

Changelog

Source

3.0.0

This release has two breaking changes.

The first is that the RovingTabIndexProvider now takes an optional options prop for tailoring the behaviour of the library. If you have previously used the direction prop on the provider then you will need to update your usage as follows:

// Old:
const SomeComponent = () => (
  <RovingTabIndexProvider direction="vertical">
    {/* whatever */}
  </RovingTabIndexProvider>
);

// New:
const SomeComponent = () => (
  <RovingTabIndexProvider options={{ direction: "vertical" }}>
    {/* whatever */}
  </RovingTabIndexProvider>
);

Note that it is fine to create a new options object on every render - the library's internal state is only updated if the individual values of the options object's properties change.

The second breaking change is that now, when an element that is part of the roving tabindex is clicked, focus() is no longer automatically invoked on the element. The previous behaviour of this library was that focus() would be invoked on a click. The reason for this was that browsers are quite inconsistent in their behaviour when a button is clicked, and invoking focus() in that situation improved consistency. However, @kripod suggested that a better default is to not automatically invoke focus() on click. If you want to maintain the old behaviour then you can use the new focusOnClick option and set it to true:

const SomeComponent = () => (
  <RovingTabIndexProvider options={{ focusOnClick: true }}>
    {/* whatever */}
  </RovingTabIndexProvider>
);

There is also a third option available on the RovingTabIndexProvider, called loopAround. If set to true then tabbing wraps around if you reach the very start or very end of the roving tabindex items, rather than stopping. This option does not apply if the roving tabindex is being used with a grid.

middleengine
published 3.0.0-beta.2 •

middleengine
published 3.0.0-beta.1 •

middleengine
published 2.2.0-beta-1 •

middleengine
published 2.1.0 •

Changelog

Source

2.1.0

  • Updated dev dependencies.
  • Switched from npm to yarn.
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