Hide tooltip when badge clicked and collapsed

pull/21833/head
wmwragg 2016-07-29 11:10:16 +01:00
부모 5889beacf3
커밋 38f504bdcb
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -111,6 +111,12 @@ module.exports = React.createClass({
onBadgeClicked: function(e) {
// Only allow none guests to access the context menu
if (!MatrixClientPeg.get().isGuest()) {
// If the badge is clicked, then no longer show tooltip
if (this.props.collapsed) {
this.setState({ hover: false });
}
var Menu = sdk.getComponent('context_menus.NotificationStateContextMenu');
var elementRect = e.target.getBoundingClientRect();
// The window X and Y offsets are to adjust position when zoomed in to page