Skip to content

scrolling behavior #1882

@unabomber78

Description

@unabomber78

I used htmx websockets to create the chat and hx-swap-oob="beforeend:#messages" to add a new message to the end of the list. How can i set the scroll bar to bottom after new message. I see in the documentation that there is an option to control the scroll bar using htmx, but it only describes the hx-swap attribute. I've tried applying this to hx-swap-oob, but it doesn't get me anywhere. Am I doing something wrong or is it currently impossible to get the result I want with htmx?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions