henry
Oct 14, 2026
Real Dialog
A modal built on the dialog element. Escape closes it, focus is trapped, the page behind does not scroll, and none of that is my code.
Every one of those is a bug in a hand built modal. The browser already shipped the fix. #javascript
Every one of those is a bug in a hand built modal. The browser already shipped the fix. #javascript
2 replies