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

ws is breaks when use hx-swap-oob with id="" #2905

Open
hosamhamdy258 opened this issue Sep 14, 2024 · 0 comments
Open

ws is breaks when use hx-swap-oob with id="" #2905

hosamhamdy258 opened this issue Sep 14, 2024 · 0 comments

Comments

@hosamhamdy258
Copy link

hello as titles describes
i have form sending data through web socket ext and changing content of page with oob attrs everything is working fine until i missed to use id on div like below
web socket breaks on other div with id="members_orders" and become normal hx-get causing page to refresh when submit as normal get request

<div id="members_orders" hx-swap-oob="innerHTML">
    <form ws-send>
        <input type="hidden" name="message_type" value="showOrders">
        <button type="submit" >show</button>
    </form>
</div>

<div id="" hx-swap-oob="innerHTML">
    data ...
</div>
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