We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36edde commit 8ea63a7Copy full SHA for 8ea63a7
src/Browser/Dom.elm
@@ -251,7 +251,7 @@ way the latest message is always on screen! You could do this:
251
jumpToBottom id =
252
Dom.getViewportOf id
253
|> Task.andThen (\info -> Dom.setViewportOf id 0 info.scene.height)
254
- |> Task.perform (\_ -> NoOp)
+ |> Task.attempt (\_ -> NoOp)
255
256
So you could call `jumpToBottom "chat-box"` whenever you add a new message.
257
0 commit comments