Frontend Masters Boost RSS Feed https://frontendmasters.com/blog Helping Your Journey to Senior Developer Thu, 23 Oct 2025 19:33:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 225069128 closedby=”any” https://frontendmasters.com/blog/closedbyany/ https://frontendmasters.com/blog/closedbyany/#respond Thu, 23 Oct 2025 19:33:19 +0000 https://frontendmasters.com/blog/?p=7498 . HTML popovers have this “light dismiss” behavior where you can “click outside” to close them, but not dialogs (until this). I forked a previous demo to try it and it works great (in Chrome & Firefox, just waiting for Safari). I’ve been using a custom <ClickOutsideDetector […]]]> I’m just hearing about the closedby="any" attribute/value for <dialog>. HTML popovers have this “light dismiss” behavior where you can “click outside” to close them, but not dialogs (until this). I forked a previous demo to try it and it works great (in Chrome & Firefox, just waiting for Safari). I’ve been using a custom <ClickOutsideDetector /> element for ages, so this is a welcome feature.

]]>
https://frontendmasters.com/blog/closedbyany/feed/ 0 7498