From 4c9c5701c3cbeb42a4a42d8f7c9dbad8659ddb3a Mon Sep 17 00:00:00 2001 From: JaeeunCho Date: Wed, 24 May 2017 15:42:02 -0700 Subject: [PATCH 1/3] HTML5 - fixed setting's dropdown re-render issue --- .../nav-bar/settings-dropdown/component.jsx | 24 +++- .../nav-bar/settings-dropdown/container.jsx | 118 +++++++++--------- .../user-list/user-list-item/component.jsx | 9 -- 3 files changed, 82 insertions(+), 69 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx index 961625f114..0291444850 100755 --- a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx @@ -67,6 +67,25 @@ const intlMessages = defineMessages({ class SettingsDropdown extends Component { constructor(props) { super(props); + + this.state = { + isSettingOpen: false, + }; + + this.onActionsShow = this.onActionsShow.bind(this); + this.onActionsHide = this.onActionsHide.bind(this); + } + + onActionsShow() { + this.setState({ + isSettingOpen: true, + }); + } + + onActionsHide() { + this.setState({ + isSettingOpen: false, + }); } render() { @@ -83,7 +102,10 @@ class SettingsDropdown extends Component { } return ( - +