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

fix sse-swap removal handling in ext/sse.js #2247

Merged
merged 1 commit into from Feb 25, 2024
Merged

Conversation

Renerick
Copy link
Collaborator

@Renerick Renerick commented Jan 26, 2024

Description

sse.js was not returning from handler after removing event listeners when sse-swap element was replaced/removed from the DOM. This lead to errors when removed element was target for swapping

Corresponding issue: https://discord.com/channels/725789699527933952/1200403330254520320

Testing

I added new test case to test/ext/sse.js and also ran manual tests with the test server

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@Renerick Renerick added bug Something isn't working extension Consideration for an extension labels Jan 26, 2024
@Telroshan Telroshan merged commit 1a8afc3 into dev Feb 25, 2024
1 check passed
Renerick added a commit to bigskysoftware/htmx-extensions that referenced this pull request Feb 25, 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 extension Consideration for an extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants