sn-simple-task-editor
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -14,2 +14,4 @@ import React from 'react'; | ||
TasksManager.get().setDataChangeHandler((tasks) => { | ||
// We need TasksManager.get().isMobile() to be defined, and this handler is called once on bridge ready. | ||
this.initiateSorting(); | ||
this.updateTasks(); | ||
@@ -20,6 +22,2 @@ }) | ||
componentDidMount() { | ||
if(!TasksManager.get().isMobile()) { | ||
this.initiateSorting(); | ||
} | ||
this.updateTasks(); | ||
@@ -29,2 +27,7 @@ } | ||
initiateSorting() { | ||
if(TasksManager.get().isMobile() || this.didInitiateSorting) { | ||
return; | ||
} | ||
this.didInitiateSorting = true; | ||
let properties = { | ||
@@ -31,0 +34,0 @@ draggable: '.task', |
{ | ||
"name": "sn-simple-task-editor", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "dist/dist.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
482963
1219