From 23f16a8befed7d81b0db1b02c708b3695475d555 Mon Sep 17 00:00:00 2001 From: poignatov Date: Tue, 10 Mar 2026 15:59:05 +0300 Subject: [PATCH] =?UTF-8?q?6.6.2:=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=B3=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8=20=D0=B8=D0=B7=20=D0=B6?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/WishlistDetail.jsx | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 09a7391..28179fc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.6.1 +6.6.2 diff --git a/play-life-web/package.json b/play-life-web/package.json index 98d30c0..3d2477f 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.6.1", + "version": "6.6.2", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/WishlistDetail.jsx b/play-life-web/src/components/WishlistDetail.jsx index 6e4f882..3e5d034 100644 --- a/play-life-web/src/components/WishlistDetail.jsx +++ b/play-life-web/src/components/WishlistDetail.jsx @@ -174,13 +174,12 @@ function WishlistDetail({ wishlistId, onNavigate, onRefresh, boardId, onClose, p const handleCreateTask = () => { if (!wishlistItem || !wishlistItem.unlocked || wishlistItem.completed) return - // Сначала навигация, потом закрытие диалога желания - onNavigate?.('task-form', { wishlistId: wishlistId }) - // Убираем запись из истории без вызова popstate - if (historyPushedForWishlistRef.current) { - historyPushedForWishlistRef.current = false - } + // Сбрасываем refs чтобы popstate handler и cleanup не мешали навигации + // history.back() не вызываем — App.jsx заменит запись модала через replaceState + historyPushedForWishlistRef.current = false + wishlistIdRef.current = null onClose?.() + onNavigate?.('task-form', { wishlistId: wishlistId }) } const handleTaskCheckmarkClick = (e) => {