WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #52473


Ignore:
Timestamp:
02/09/2021 07:31:59 AM (9 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52473

    • Property Keywords has-patch added; needs-patch removed
    • Property Milestone changed from Future Release to 5.7
  • Ticket #52473 – Description

    initial v2  
    11For some reasons the `dark-mode-toggler.js` from Twenty Twenty-One is also enqueued in the block editor if Dark Mode support is enabled. This is causing JavaScript errors if the window (not the editor itself) is scrolled.
    22
    3 ```
     3{{{
    44Uncaught TypeError: Cannot read property 'classList' of null
    55    at checkScroll (dark-mode-toggler.js?ver=1.0.0:56)
    6 ```
     6}}}
    77
    88To reproduce enable Dark Mode support in the Customizer and open the block editor. Now reduce the height of the window so that you're able to scroll the admin menu. Once you scroll you should see the JavaScript error from above in the console.