From 6bf1203581a295e82116c23bc4fe2d9d29362cf4 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 11 Feb 2016 23:41:13 +0500 Subject: Multiple UI Improvements --- web/react/components/navbar.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/react/components/navbar.jsx') diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx index e6a9fbd25..06345b584 100644 --- a/web/react/components/navbar.jsx +++ b/web/react/components/navbar.jsx @@ -28,6 +28,7 @@ import {FormattedMessage} from 'mm-intl'; const Popover = ReactBootstrap.Popover; const OverlayTrigger = ReactBootstrap.OverlayTrigger; +const attachFastClick = require('fastclick'); export default class Navbar extends React.Component { constructor(props) { @@ -59,6 +60,7 @@ export default class Navbar extends React.Component { ChannelStore.addChangeListener(this.onChange); ChannelStore.addExtraInfoChangeListener(this.onChange); $('.inner__wrap').click(this.hideSidebars); + attachFastClick(document.body); } componentWillUnmount() { ChannelStore.removeChangeListener(this.onChange); -- cgit v1.2.3-1-g7c22 From 37a999ebaf30e7ce1ca00f951ed7d25e71bc5615 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 12 Feb 2016 23:06:51 +0500 Subject: Adding import instead of require for fastclick --- web/react/components/navbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components/navbar.jsx') diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx index 06345b584..835298635 100644 --- a/web/react/components/navbar.jsx +++ b/web/react/components/navbar.jsx @@ -25,10 +25,10 @@ const ActionTypes = Constants.ActionTypes; import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; import {FormattedMessage} from 'mm-intl'; +import attachFastClick from 'fastclick'; const Popover = ReactBootstrap.Popover; const OverlayTrigger = ReactBootstrap.OverlayTrigger; -const attachFastClick = require('fastclick'); export default class Navbar extends React.Component { constructor(props) { -- cgit v1.2.3-1-g7c22