aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/tabs/Tabbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/tabs/Tabbar.js')
-rw-r--r--src/components/services/tabs/Tabbar.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/services/tabs/Tabbar.js b/src/components/services/tabs/Tabbar.js
index fd4325107..9da1090b7 100644
--- a/src/components/services/tabs/Tabbar.js
+++ b/src/components/services/tabs/Tabbar.js
@@ -30,6 +30,8 @@ export default class TabBar extends Component {
30 reorder({ oldIndex, newIndex }); 30 reorder({ oldIndex, newIndex });
31 }; 31 };
32 32
33 shouldPreventSorting = event => event.target.tagName !== 'LI';
34
33 toggleService = ({ serviceId, isEnabled }) => { 35 toggleService = ({ serviceId, isEnabled }) => {
34 const { updateService } = this.props; 36 const { updateService } = this.props;
35 37
@@ -71,6 +73,7 @@ export default class TabBar extends Component {
71 setActive={setActive} 73 setActive={setActive}
72 onSortEnd={this.onSortEnd} 74 onSortEnd={this.onSortEnd}
73 onSortStart={disableToolTip} 75 onSortStart={disableToolTip}
76 shouldCancelStart={this.shouldPreventSorting}
74 reload={reload} 77 reload={reload}
75 toggleNotifications={toggleNotifications} 78 toggleNotifications={toggleNotifications}
76 toggleAudio={toggleAudio} 79 toggleAudio={toggleAudio}