Changes between Initial Version and Version 2 of Ticket #52473
- Timestamp:
- 02/09/2021 07:31:59 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52473
- Property Keywords has-patch added; needs-patch removed
- Property Milestone Future Release → 5.7
-
Ticket #52473 – Description
initial v2 1 1 For 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. 2 2 3 ``` 3 {{{ 4 4 Uncaught TypeError: Cannot read property 'classList' of null 5 5 at checkScroll (dark-mode-toggler.js?ver=1.0.0:56) 6 ``` 6 }}} 7 7 8 8 To 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)