Преглед на файлове

Reactivate the touch event fix for the boards list

This fixes https://github.com/wekan/wekan/issues/3049.
Marc Hartmayer преди 5 години
родител
ревизия
eddcb2260b
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      client/components/boards/boardsList.js

+ 4 - 1
client/components/boards/boardsList.js

@@ -1,5 +1,5 @@
 const subManager = new SubsManager();
-const { calculateIndex } = Utils;
+const { calculateIndex, enableClickOnTouch } = Utils;
 
 Template.boardListHeaderBar.events({
   'click .js-open-archived-board'() {
@@ -68,6 +68,9 @@ BlazeComponent.extendComponent({
       },
     });
 
+    // ugly touch event hotfix
+    enableClickOnTouch(itemsSelector);
+
     // Disable drag-dropping if the current user is not a board member or is comment only
     this.autorun(() => {
       $boards.sortable('option', 'disabled', !userIsAllowedToMove());