Socket
Socket
Sign inDemoInstall

wicg-inert

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wicg-inert

A polyfill for the proposed inert API


Version published
Weekly downloads
124K
increased by1.08%
Maintainers
2
Weekly downloads
 
Created

What is wicg-inert?

The wicg-inert npm package provides a way to make elements inert, meaning they are removed from the tab order and cannot receive focus or be interacted with by assistive technologies. This is useful for managing focus and interaction in web applications, especially when dealing with modal dialogs, overlays, or other UI elements that should temporarily disable interaction with the rest of the page.

What are wicg-inert's main functionalities?

Make an element inert

This feature allows you to make a specific element inert, meaning it will be removed from the tab order and cannot receive focus or be interacted with by assistive technologies. This is useful for disabling parts of the UI temporarily.

document.querySelector('#myElement').inert = true;

Remove inert state from an element

This feature allows you to remove the inert state from a specific element, making it interactive and focusable again. This is useful for re-enabling parts of the UI that were previously disabled.

document.querySelector('#myElement').inert = false;

Other packages similar to wicg-inert

Keywords

FAQs

Package last updated on 20 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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