Comments Component Opens At Top of Screen Initially, Subsequently Open To Bottom

App layout:

Collection: Chats —> Action on Item Click: Open Chat —> Comments Component In Chat Layout (this is the only component on the screen, no other title bars, buttons, etc)

When an app is first opened and a chat is clicked, the comment screen shows the top of the screen.

If you back out of the comment screen to see the list of chats, wait a few seconds, then reopen any chat, the comment screen shows the very bottom of the screen.

This happens no matter how I sort the comments. Newest to oldest or oldest to newest.

Ideally, the comment screen would always open to show the newest comment, whether at the bottom of the screen or at the top.

Multiple apps with chat function all show the same behavior.

Can you share a screenshot of what you’re seeing?

I think I follow from your description, but I want to be sure I’m understanding it properly. :slight_smile:

Sure, let me show you what I see…

This issue occurs when you first open the app, or the app has not been opened and refreshed for a few hours.

First, this is the chat page for all the individual chats

I’ve blurred out some personal info. If I click on the most recent chat, it opens a new page to show the comments in that chat

Notice that the page opens and displays at the top of the screen. In this case I have the comments sorted by oldest to newest, so you see the oldest comments at the top.

I can scroll all the way down to the bottom of the page to see the newer comments, but once a chat gets lengthy, that can take a while to do.

The alternative method for getting to the bottom of the screen is to click the back button, wait 10 seconds or so, and then open any one of the chats. If you do this, then the chat will open by displaying the very bottom of the page, or in my case the newest comments.

If I reverse the order of the comments to have the newest comments at the top, the behavior does not change. The first time you open the chat, it shows the top of the page. Then once you back out and open the same or different chat, the bottom of the page is displayed.

Let me know if you need further screenshots or details.

Thanks!

Incredibly helpful. Thank you!

So, to summarize:

  • You have a collection component for chat threads
  • Each chat thread is an item in that collection
  • When you first click a chat thread, it takes you to the top of the detail screen
  • When you go back, and view again, you go to the bottom of the screen

Is that accurate?

Yes, that is accurate. And the behavior only occurs when the app is newly loaded, meaning if it has been closed or has not been opened by the user in a while.

I don’t know what the technical term for that is, but if the app is open in the background on a device and the user is interacting with it, the chat screen will always open to the bottom of the chat. If the user does not use the app for a prolonged period, and then the app refreshes upon opening, then the chat initially opens to the top of the comment screen.

Edit: I should add that the details page for each chat only contains the “comments” component, and the style is “Chat”. If I switch the style to “comments” then the behavior still persists, but the details page opens about halfway down the page initially, not at the top of the page.

@NoCodeAndy I sent a video of this behavior to @tristan last week as well. Confirmed that it’s a bit wonky at times.

I have noticed that too!

Excellent, thank you. I’ll dig into our issues log and attach this thread to it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.