ionic-team / ionic-team/ionic-framework

bug: Ionic React restores scroll position when navigating forward from /foo/0 to /foo/1

未关闭
#20,816 16 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
package: react type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

# Bug Report

**Ionic version:**
[x] 5.x

**Current behavior:**
when the user wants to go to another news on a news detail page, he reaches the news that he clicked on the news link, but because the user's location is at the bottom of the page, he has to go up when he wants to see the news

**Expected behavior:**
I think it should go up automatically every time a link is clicked in the backhend

**Steps to reproduce:**

**Related code:**

<>
{
newsdetails.length===0? this.getNews} message={"Haber yükleniyor"} duration={5000}/> :


{newsdetails.map(newdetail =>

{newdetail.id}


{newdetail.__comment_count} Yorumla
Paylaş

{newdetail.title}


{newdetail.short_content}


{newdetail.date}




)}

}
{
categorys.length===0 ? :



AYNI KATAGORİDEN HABERLER



    {categorys.map(category =>



  • {category.id}

    {category.title}


  • )}


}

贡献指南

打开贡献指南

调研方向

No source file, test, or reproduction application is named. Start by reproducing the forward navigation from /foo/0 to /foo/1, then inspect the shown React transition and Ionic React's scroll restoration behavior. Done means forward navigation opens the destination at the top without breaking back navigation.

由索引模型根据 Issue 内容生成。

评估

技术栈
react, typescript
领域
frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。