Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Commit

Permalink
Define floating menu target (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored and marijohannessen committed Jul 3, 2018
1 parent f9e5c7f commit df20140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class App extends Component {
currentLocation === 'live' ? '' : <SideNavToggle onToggleBtnClick={this.onToggleBtnClick} isOpen={this.state.isOpen} />;

return (
<div className="wrapper" onLoad={this.initCustomComponents}>
<div data-floating-menu-container className="wrapper" onLoad={this.initCustomComponents}>
{toggleBtnContent}
{sideNavContent}
<div className={classNames}>
Expand Down
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import window from 'window-or-global';
import React from 'react';
import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
Expand All @@ -26,6 +26,9 @@ window.addEventListener('load', () => {
});

ReactDOM.render(
<Router history={browserHistory} onUpdate={logPageView} routes={routes} />,
<Fragment>
<Router history={browserHistory} onUpdate={logPageView} routes={routes} />
<input type="text" className="bx--visually-hidden" />
</Fragment>,
document.getElementById('root'),
);

0 comments on commit df20140

Please sign in to comment.