[wp-trac] [WordPress Trac] #48601: Twenty Twenty: document.body is null
WordPress Trac
noreply at wordpress.org
Wed Nov 13 15:36:14 UTC 2019
#48601: Twenty Twenty: document.body is null
---------------------------+-----------------------------
Reporter: quicoto | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: critical | Keywords:
Focuses: |
---------------------------+-----------------------------
**Steps:**
1) Open the site on a mobile device
2) Check the console, you get a JavaScript exception.
3) Try to open the top navigation menu.
**Current**
The navigation menu can not be opened because of this.
**Expected**
Navigation menu can be opened.
**Error**
{{{
TypeError: document.body is null
}}}
The exception occurs in /assets/js/index.js line 83
{{{
document.body.classList.add( 'touch-enabled' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48601>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list