6.4.13: Фикс кнопки назад для диалога цели
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
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -773,9 +773,10 @@ function AppContent() {
|
||||
// Проверяем, есть ли открытые модальные окна в DOM
|
||||
const taskDetailModal = document.querySelector('.task-detail-modal-overlay')
|
||||
const wishlistDetailModal = document.querySelector('.wishlist-detail-modal-overlay')
|
||||
const conditionFormOverlay = document.querySelector('.condition-form-overlay')
|
||||
|
||||
// Если есть открытые модальные окна, не обрабатываем здесь - компоненты сами закроют их
|
||||
if (taskDetailModal || wishlistDetailModal) {
|
||||
if (taskDetailModal || wishlistDetailModal || conditionFormOverlay) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -922,7 +923,7 @@ function AppContent() {
|
||||
if (isNewTabDeep) {
|
||||
// Проверяем, была ли последняя запись в истории от модального окна
|
||||
const currentState = window.history.state || {}
|
||||
const isFromModal = currentState.modalOpen === true
|
||||
const isFromModal = currentState.modalOpen === true || currentState.conditionForm === true
|
||||
const isNavigatingToForm = tab === 'task-form' || tab === 'wishlist-form' || tab === 'shopping-item-form'
|
||||
|
||||
if (isFromModal && isNavigatingToForm) {
|
||||
|
||||
Reference in New Issue
Block a user