6.4.7: Фикс закрытия диалога желания при закрытии задачи
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m5s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m5s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "play-life-web",
|
||||
"version": "6.4.6",
|
||||
"version": "6.4.7",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -230,7 +230,7 @@ function WishlistDetail({ wishlistId, onNavigate, onRefresh, boardId, onClose, p
|
||||
// закрываем модальные окна без удаления записей из истории
|
||||
// App.jsx сам обработает навигацию и заменит запись task-detail на task-form через replaceState
|
||||
// Запись wishlist-detail останется в истории, но экран будет закрыт
|
||||
if (skipHistoryBack) {
|
||||
if (skipHistoryBack === true) {
|
||||
// Сохраняем флаг перед сбросом
|
||||
const hadWishlistHistory = historyPushedForWishlistRef.current
|
||||
|
||||
@@ -293,6 +293,7 @@ function WishlistDetail({ wishlistId, onNavigate, onRefresh, boardId, onClose, p
|
||||
const currentTaskDetail = selectedTaskForDetailRef.current
|
||||
const currentWishlistId = wishlistIdRef.current
|
||||
|
||||
|
||||
// Сначала проверяем вложенное модальное окно TaskDetail
|
||||
if (currentTaskDetail || taskDetailModal) {
|
||||
setSelectedTaskForDetail(null)
|
||||
|
||||
Reference in New Issue
Block a user