Use of Esc key to close lightbox disables vertical scrollbar

Version 2.3.0 (free) appears to have a bug under certain conditions. When you press the Esc key to close the lightbox, the browser page freezes. You have to F5 to reload and unstick it. The X button on the lightbox (top-right) works fine. The problem appears to relate solely to the use of the Esc key.

This initially happened on a development environment (so not publicly-accessible): Windows 11 Home 23H2; Wampserver 3.3.6 (Apache 2.4.51, PHP 7.4.26); WordPress 6.6.1 (twentytwentytwo theme 1.7). I’ve updated the plugin twice, rolling back in between, and the problem has occurred on each occasion.

I have also updated our production environment: LiteSpeed (Apache 2.4.62, PHP 7.4.33); WordPress 6.6.1 (twentytwentytwo theme 1.7).

UPDATE: The specific issue is that the page vertical scrollbar disappears after the use of the Esc key. Buttons on the page can still be clicked etc.

Browser tests: Chrome 128.0.6613.85: fails on both dev & live instances; Microsoft Edge 128.0.2739.42 fails on dev but NOT on live.

Both instances have a custom CSS directive to force the scroll bar on – body {overflow-y: scroll !important;} – but removing this does not change the behaviour.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer