From 7e378be1d87280b8fb3f63eea3c0374e12054984 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 12 Mar 2026 04:39:51 +0200 Subject: [PATCH] Fix Add List popup to not open after adding new board or there being no lists at all. Thanks to xet7 ! --- client/components/boards/boardBody.js | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 60ff2393a..56d64dbe2 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -212,29 +212,6 @@ Template.boardBody.onCreated(function () { return boardView === 'board-view-lists'; }; - this.openNewListForm = () => { - const openInlineFormButton = this.find('.js-list-composer .js-open-inlined-form'); - if (openInlineFormButton) { - openInlineFormButton.click(); - return; - } - - const boardCanvas = this.find('.board-canvas') || this.firstNode; - if (boardCanvas) { - Popup.open('addList').call( - Utils.getCurrentBoard(), - { - currentTarget: boardCanvas, - target: boardCanvas, - preventDefault() {}, - }, - { - dataContextIfCurrentDataIsUndefined: Utils.getCurrentBoard(), - }, - ); - } - }; - // fix swimlanes sort field if there are null values const currentBoardData = Utils.getCurrentBoard(); if (currentBoardData && Swimlanes) { @@ -626,13 +603,6 @@ Template.boardBody.onRendered(function () { } }); - // If there is no data in the board (ie, no lists) we autofocus the list - // creation form by clicking on the corresponding element. - const currentBoard = Utils.getCurrentBoard(); - if (Utils.canModifyBoard() && currentBoard.lists().length === 0) { - tpl.openNewListForm(); - } - dragscroll.reset(); Utils.setBackgroundImage(); });