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

[BUG] Swapping elements via websocket doesn't trigger transitions #65

Open
tpanajott opened this issue Jul 27, 2024 · 0 comments
Open

Comments

@tpanajott
Copy link

tpanajott commented Jul 27, 2024

Sending <div hx-swap-oob="true" class="min-h-1 overflow-hidden rounded-t-md w-full transition-all ease-linear duration-500 bg-red-500 dark:bg-red-700" id="panel_header-32"></div> over a websocket does not trigger the transition. If, however, you perform a hx-get request and perform oob-swap with the exact same HTML swap it does show the transition.

I had a look through both the WebSocket extension and the base HTMX library but as I'm no expert in JavaScript i couldn't find anything.

Using HTMX: https://unpkg.com/[email protected]
Using websocket extension: https://unpkg.com/[email protected]/dist/ext/ws.js

Doesn't matter if I use "hx-swap" attribute to set a transition either. Tested on both Firefox and Chromium.

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

No branches or pull requests

1 participant