Permalink
Browse files

Prevent sorting services by clicking in the tab bar background

  • Loading branch information...
jescobar
jescobar committed Nov 18, 2017
1 parent b1899be commit 86413ba213c9a457ee42a51f2ad29bd66f84d288
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/components/services/tabs/Tabbar.js
@@ -30,6 +30,8 @@ export default class TabBar extends Component {
reorder({ oldIndex, newIndex });
};
shouldPreventSorting = event => event.target.tagName !== 'LI';
toggleService = ({ serviceId, isEnabled }) => {
const { updateService } = this.props;
@@ -71,6 +73,7 @@ export default class TabBar extends Component {
setActive={setActive}
onSortEnd={this.onSortEnd}
onSortStart={disableToolTip}
shouldCancelStart={this.shouldPreventSorting}
reload={reload}
toggleNotifications={toggleNotifications}
toggleAudio={toggleAudio}

0 comments on commit 86413ba

Please sign in to comment.