Lock UI with the inert attribute, not pointer-events-none
@alandev03▲ 5 net votes
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.