diff options
author | Kacper Kula <kulak@kulak.at> | 2017-06-08 13:46:11 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-06-08 07:46:11 -0400 |
commit | 613a8736111456bf93ae09f6f8814dca1de187ed (patch) | |
tree | 964a5c8c8950554b1cf3c27a7832119960772b01 /webapp/components/rhs_dropdown.jsx | |
parent | f859b5f7afb391e0ae02dd69a6657574d14ece9a (diff) | |
download | chat-613a8736111456bf93ae09f6f8814dca1de187ed.tar.gz chat-613a8736111456bf93ae09f6f8814dca1de187ed.tar.bz2 chat-613a8736111456bf93ae09f6f8814dca1de187ed.zip |
[PLT-6394] [...] menu no longer hides when not hovered. (#6353)
* [PLT-6394] [...] menu no longer hides when not hovered.
* Fixed dropdown visibility to use same method as main window.
Diffstat (limited to 'webapp/components/rhs_dropdown.jsx')
-rw-r--r-- | webapp/components/rhs_dropdown.jsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/webapp/components/rhs_dropdown.jsx b/webapp/components/rhs_dropdown.jsx index e88d2a2bd..9323e1cec 100644 --- a/webapp/components/rhs_dropdown.jsx +++ b/webapp/components/rhs_dropdown.jsx @@ -13,7 +13,8 @@ import * as Agent from 'utils/user_agent.jsx'; export default class RhsDropdown extends Component { static propTypes = { - dropdownContents: PropTypes.array.isRequired + dropdownContents: PropTypes.array.isRequired, + handleDropdownOpened: PropTypes.func } constructor(props) { @@ -26,6 +27,9 @@ export default class RhsDropdown extends Component { toggleDropdown = () => { const showDropdown = !this.state.showDropdown; + if (this.props.handleDropdownOpened) { + this.props.handleDropdownOpened(showDropdown); + } if (Agent.isMobile() || Agent.isMobileApp()) { const scroll = document.querySelector('.scrollbar--view'); if (showDropdown) { @@ -56,4 +60,3 @@ export default class RhsDropdown extends Component { ); } } - |