Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправить ошибку раскрытия меню после "открытия" страницы без полной перезагрузки #181

Open
d-r-q opened this issue Feb 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@d-r-q
Copy link
Member

d-r-q commented Feb 24, 2024

Шаги

  1. Перейти из журнала в редактирование записи
  2. Нажать на гамбергер-меню
  3. Ожидаемый результат - меню скроется/покажется
  4. Фактический результат - ничего не происходит

Если после этого спровоцировать полную перезагрузку (ф5 или нажать "назад") - меню начинает работать

Предположительно проблема в следующем:

  1. после загрузки части страницы (без body), срабатывает htmx:afterSwap (см. toggle left panel), который навешивает второй слушатель на нетронутый элемент и он отменяет переключение, сделанное первым слушателем
@d-r-q d-r-q added the bug Something isn't working label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant