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

Define floating menu target #290

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'),
);