Skip to content

Commit

Permalink
Revert "toggle flyout"
Browse files Browse the repository at this point in the history
This reverts commit d4c6b63.
  • Loading branch information
ryankeairns committed Mar 11, 2019
1 parent d4c6b63 commit b4b6fe1
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/components/nav_drawer/nav_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,14 @@ export class EuiNavDrawer extends Component {
expandFlyout = (links, title) => {
const content = links;

if (this.state.navFlyoutTitle === title) {
this.collapseFlyout();
} else {
this.setState({
flyoutIsCollapsed: false,
navFlyoutTitle: title,
navFlyoutContent: content,
isCollapsed: true,
toolTipsEnabled: false,
outsideClickDisabled: false,
});
}
this.setState({
flyoutIsCollapsed: false,
navFlyoutTitle: title,
navFlyoutContent: content,
isCollapsed: true,
toolTipsEnabled: false,
outsideClickDisabled: false,
});
};

collapseFlyout = () => {
Expand Down

0 comments on commit b4b6fe1

Please sign in to comment.