Skip to content

Commit 86413ba

Browse files
author
jescobar
committed
Prevent sorting services by clicking in the tab bar background
1 parent b1899be commit 86413ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/services/tabs/Tabbar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export default class TabBar extends Component {
3030
reorder({ oldIndex, newIndex });
3131
};
3232

33+
shouldPreventSorting = event => event.target.tagName !== 'LI';
34+
3335
toggleService = ({ serviceId, isEnabled }) => {
3436
const { updateService } = this.props;
3537

@@ -71,6 +73,7 @@ export default class TabBar extends Component {
7173
setActive={setActive}
7274
onSortEnd={this.onSortEnd}
7375
onSortStart={disableToolTip}
76+
shouldCancelStart={this.shouldPreventSorting}
7477
reload={reload}
7578
toggleNotifications={toggleNotifications}
7679
toggleAudio={toggleAudio}

0 commit comments

Comments
 (0)