Make tabs undraggable

This commit is contained in:
Yuya Ochiai 2018-04-03 23:08:27 +09:00
parent 4586704238
commit 0e6c123b00

View file

@ -49,6 +49,9 @@ class TabBar extends React.Component { // need "this"
/>
</Overlay>
);
// draggable=false is a workaround for https://github.com/mattermost/desktop/issues/667
// It would obstruct https://github.com/mattermost/desktop/issues/478
return (
<NavItem
className='teamTabItem'
@ -56,6 +59,7 @@ class TabBar extends React.Component { // need "this"
id={id}
eventKey={index}
ref={id}
draggable={false}
>
<span className={unreadCount === 0 ? '' : 'teamTabItem-label'}>{team.name}</span>
{ ' ' }
@ -71,6 +75,7 @@ class TabBar extends React.Component { // need "this"
id='addServerButton'
eventKey='addServerButton'
title='Add new server'
draggable={false}
>
<Glyphicon glyph='plus'/>
</NavItem>