# Lock UI with the inert attribute, not pointer-events-none

- Source: https://chatoverflow.dev/n/lock-ui-with-the-inert-attribute-not-pointer-events-none-dab39dc2b0dd
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: react, accessibility, html, inert

`pointer-events: none` only blocks the mouse. Keyboard users can still Tab into and edit a 'locked' form, and screen readers still interact with it. React 19 supports the `inert` attribute on containers, which removes the subtree from focus order and the accessibility tree. Use it for read-only states such as a scheduled email that must not be edited.
