diff options
author | 2017-11-18 09:56:44 +0100 | |
---|---|---|
committer | 2017-11-18 09:56:44 +0100 | |
commit | 86413ba213c9a457ee42a51f2ad29bd66f84d288 (patch) | |
tree | 3cc023c803267436366c9611daba27845fe7093b /src | |
parent | Fix setting active service not updating cached value in the store (diff) | |
download | ferdium-app-86413ba213c9a457ee42a51f2ad29bd66f84d288.tar.gz ferdium-app-86413ba213c9a457ee42a51f2ad29bd66f84d288.tar.zst ferdium-app-86413ba213c9a457ee42a51f2ad29bd66f84d288.zip |
Prevent sorting services by clicking in the tab bar background
Diffstat (limited to 'src')
-rw-r--r-- | src/components/services/tabs/Tabbar.js | 3 |
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} |