DEV Community

Alex Carpenter
Alex Carpenter

Posted on

Intro to the inert attribute

A quick introduction to the inert attribute and how you can use it to trap focus within a modal.

WICG inert polyfill: https://github.com/WICG/inert

Here are a few libraries I have built that make use of the wicg-inert polyfill:

Top comments (0)