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

scroll:bottom doesn't work with signalr-subscribe #4

Open
rpierry opened this issue Jan 12, 2023 · 0 comments
Open

scroll:bottom doesn't work with signalr-subscribe #4

rpierry opened this issue Jan 12, 2023 · 0 comments

Comments

@rpierry
Copy link

rpierry commented Jan 12, 2023

I'm using signalr-subscribe for chat-like functionality on a div with overflow-y: auto and hx-swap beforeend so that new messages have their markup appended to the end of the div. I'd like to automatically scroll the new content into view. This doesn't seem to work.

I think this is the same issue as bigskysoftware/htmx#784 which references bigskysoftware/htmx#255 but I wasn't sure if you wanted to track this separately or not.

I'm pretty sure I can work around this (maybe a load handler in the new p element sent by the server that does scrolling). I don't think handling htmx:signalr:message would work because that happens before - maybe htmx:afterswap or something.

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