8000 set events on browser back, history.back() - refactored for new layout by derkan · Pull Request #168 · axzilla/templui · GitHub
[go: up one dir, main page]

Skip to content

set events on browser back, history.back() - refactored for new layout #168

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

derkan
Copy link
Contributor
@derkan derkan commented May 14, 2025

When using htmx-swap, after a history.back() action, drawer trigger button is not initialized. This PR is to init events on popstate event.

Note: I had to close previous PR #162 and open this because of layout change.

@axzilla
Copy link
Owner
axzilla commented May 16, 2025

Does this error occur in all browsers? Safari, Firefox, and Chrome?

@derkan
Copy link
Contributor Author
derkan commented May 16, 2025

Tested so far:

  • Safari: problem exists
  • Firefox: problem exists
  • Chrome(google chrome, brave): problem exists

I haven't used all components(which needs script event inits), it seems that all need "popstate" event registration. Your components have a neat internal structure, I like it. While thinking about it, not to pollute this PR, I created discussion #175.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0