Skip to content

Commit

Permalink
Fix console error when onPageNav !== 'separate'
Browse files Browse the repository at this point in the history
  • Loading branch information
miralemd committed Aug 21, 2018
1 parent 92f95df commit 51d52f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ class SideNav extends React.Component {
var toggler = document.querySelector(togglerSelector);
var target = document.querySelector(targetSelector);
if (!toggler) {
return;
}
toggler.onclick = function(event) {
event.preventDefault();
Expand Down

0 comments on commit 51d52f8

Please sign in to comment.