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) => {