Fix new item removed on remote change

pull/1/head
yflory 5 years ago
parent bf02f1f97e
commit 01ce4bcb95

@ -981,7 +981,7 @@ define([
// An item was being added: add a new item
if (id === "new" && !data.oldValue) {
var $newBoard = $('.kanban-board[data-id="'+data.newBoard+'"]');
$newBoard.find('.kanban-title-button.fa-plus').click();
$newBoard.find('.kanban-title-button').click();
var $newInput = $newBoard.find('.kanban-item:last-child input');
$newInput.val(data.value);
$newInput[0].selectionStart = data.start;

Loading…
Cancel
Save